Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-06-2011, 01:47 AM
Bane Bane is offline
Registered User
Join Date: May 2002
Posts: 6
Bane is on a distinguished road
GuiTextCtrls and Macintosh Font Compatibility

In my attempts to work on my engine, I've noticed that a number of Macintosh users have been informing me that they can't see the text in my GuiTextCtrl objects. Here is an example of some typical code and my attempts to make it Macintosh compatible (the area in question is in bold italics):

NPC Code:

new GuiTextCtrl("InsideText")
{
makefirstresponder(false);
useOwnProfile = true;
x = 6;
y = 0;
width = RPGText.width;
height = RPGText.height;
text = attr[3];

if (getplatform() == "win")
profile.fonttype = "Courier";


profile.fontcolor = {255, 255, 255, 1};
}



I have tried logic to change the GuiControlProfile to a different font if the detecting platform is a Macintosh, but that didn't work either.

My guess is that the Macintosh does not support the Courier font for whatever reason (this is my preferred font because all of the characters are the same size). This issue occurred on the older Graal version as well as v6.

How would I proceed in making these GuiTextCtrls Macintosh compatible? Is there a list of Macintosh compatible fonts somewhere?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.