Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: TVScreen2DText underline bug  (Read 1789 times)
analysis_junky
Customers
Community Member
*****
Posts: 144


WWW
« on: August 08, 2007, 04:30:38 PM »

I think there is a problem with TVScreen2DText. I am unable to underline text, and if bold=true, then I am unable to render italic font!?!?

Below is the code for generating and rendering the text.


Code to create the font

Code:

 public CreateFont(string fontName, int size, bool _bold, bool _underline, bool _italic)
        {
            drawer = Core.Screen2D;
            writer = Core.Text2D;
            Alignment = Align.Left;
            FontSize = size;
            Bold = _bold;
            Underline = _underline;
            Italic = _italic;
            iNFont = writer.NormalFont_Create(fontName, fontName, FontSize, Bold, Underline, Italic);
        }

Code to render the font

Code:
writer.NormalFont_DrawText(Text, x1, y1, ForeColor, iNFont);

Am I loosing my head here?  Huh

Logged

Project: Eternis Prime
Zarkow
Customers
Community Member
*****
Posts: 342


WWW
« Reply #1 on: August 13, 2007, 05:20:40 PM »

Does the font in itself support bold and italic at the same time?
Logged
analysis_junky
Customers
Community Member
*****
Posts: 144


WWW
« Reply #2 on: August 14, 2007, 09:12:26 AM »

Good question; the answer is yes.
Details below.

(click on the images to view larger size)


Times New Roman
12
bold only




Times New Roman
12
bold and underline




Times New Roman
12
bold, underline, and italic


(even though it appears that the image path isn't correct, it is; click to view)



Logged

Project: Eternis Prime
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks