* 671 Posts in 238 Topics by 74 Members Latest Member: pythagoras   **
IFSO PORTAL
  Advanced search
May 18, 2013, 02:50:24 am
HomeforumHelpSearchLoginRegister**
Recent Posts
[May 08, 2013, 10:38:33 pm]

[April 26, 2013, 02:00:31 pm]

[April 14, 2013, 12:39:49 pm]

[December 21, 2012, 06:13:17 am]

[November 13, 2012, 02:21:49 pm]

[August 28, 2012, 06:38:27 pm]

[May 28, 2012, 10:12:41 pm]

[May 05, 2012, 01:01:38 pm]

[May 03, 2012, 02:11:03 pm]

[April 30, 2012, 12:48:25 pm]
IFSO Portal  |  Forum  |  ifsoGUI  |  Bug Reports  |  Topic: Custom Font system and labels « previous next »
Pages: [1] Go Down Print
Author Topic: Custom Font system and labels  (Read 1961 times)
Rixarn
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 2



View Profile
« on: February 06, 2012, 02:10:41 pm »

Hi,

I don't know if this is a bug or it is intentional but, labels wont draw text if I happen to use a custom font system that doesn't support partial drawing of characters. Looking into the code of the label.bmx it all comes down to the DrawTextArea function:

The conditional logic there will only enter the custom drawing routine if bUseCustomFont = true and bCanDrawPartial = true, else, you´re left with the bmax font system, wich I'm avoiding...
Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 462


TaskyZ
View Profile
« Reply #1 on: March 02, 2012, 01:34:46 pm »

Hi,

I don't know if this is a bug or it is intentional but, labels wont draw text if I happen to use a custom font system that doesn't support partial drawing of characters. Looking into the code of the label.bmx it all comes down to the DrawTextArea function:

The conditional logic there will only enter the custom drawing routine if bUseCustomFont = true and bCanDrawPartial = true, else, you´re left with the bmax font system, wich I'm avoiding...

Wow, I am sorry, I did not even see this post...

I will look into it as soon as I can and post back.
Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 462


TaskyZ
View Profile
« Reply #2 on: March 02, 2012, 02:05:01 pm »

I don't think you are reading the code correctly.  The DrawTextArea() function that is called by the label Draw() method tries to shorten the string to be small enough to fit into the label and then send the string to your Custom DrawText function.  It never calls any text drawing routines other than the one you provided.
Logged
Pages: [1] Go Up Print 
IFSO Portal  |  Forum  |  ifsoGUI  |  Bug Reports  |  Topic: Custom Font system and labels « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.17 | SMF © 2011, Simple Machines
TinyPortal v0.9.8 © Bloc
TechHead design by Bloc
Valid XHTML 1.0! Valid CSS!