B.Balemi Posted December 1, 2003 Share Posted December 1, 2003 I have tried to use this in a Script to get arial font on Win XP. On different computers gets a diiferent font depending on how many in the system. Any one had this and overcome? Brendan Quote Link to comment
ccroft Posted December 2, 2003 Share Posted December 2, 2003 It seems that the integer returned by GetFont has something to do with that particular font's position in the list of active fonts. I don't know what you are doing, but you could try something like: TextFont(GetFontID('Arial')); Or you could store the result in a variable: font:= GetFontID('Arial"); and go from there using font instead of a literal. Either way it won't matter what ID is actually returned by GetFont, as long as arial is present in the system. If this doesn't help,you should post back with more info on what exactly you're trying to do with your script.An example of how you are using GetFont would be useful. [ 12-01-2003, 10:24 PM: Message edited by: ccroft ] Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.