X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 26 Aug 2008 12:39 PM by  anon
Font Mess
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
26 Aug 2008 12:39 PM
    Hello, I want to find out what is the size,  in pixels, for  a single character in IDL. I know there are 3 differet FONTs used in IDL: Vector, TrueType, Device. I belive for graphics the default is Vector (as the val of !p.font = -1). What about the default fonts in widgets? Like, the default for widget_label or widget_button? When I print the val of: strFont = WIDGET_INFO(label_widget_id, /FONTNAME) I get something like:   -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1; which is meaningless. How can I find the default font for widgets? Also, when trying to set the font to a widget_label for example, this simple does not work as it does not do anything: a_label = widget_labe(somebase, value='Some Text', font='HELVETICA BOLD') How can I make the above work? How can I change the font size of a label for example? Finally, what are the  FONTs available to all:  Microsoft Windows, Unix, and Mac? Once I find the font size in inches, I believe I can calculate the font size in pixels (or pixels per character) using: FontSize in Pixels = (FontSize in points / 72 dots per inch ) * Screen dots per inch If you have any insight in the above equation let me know. THANKS!    
    You are not authorized to post a reply.