The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Obtaining Text-Label FontNames
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rlewis

Canada
253 Posts

Posted - 09/23/2005 :  3:09:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Origin Pro 7.5 SR5):
Operating System:Win-XP Pro

On my system the following function ...

long Get_Text_Font_info(string strTextLabelName)
{
GraphLayer gLayr=Project.ActiveLayer();
GraphObject grObj=gLayr.GraphObjects(strTextLabelName);
if(grObj.IsValid())
{
return (grObj.Label.Font.Face.nVal);
}
return (-1);
}


returns a 10 digit number which, presumably, encodes all information about the font of the Text label. How does one decode this to obtain someting as simple as a Font Name ??

  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000