11-06-2008 09:40 AM
11-06-2008 02:02 PM - edited 11-06-2008 02:09 PM
It sure seems like the mapping of the NI meta fonts has some gaps in it, and the next closest font is not so close.
I can't help much with Linux, but here are a few clues:
NI font mappings (dated!) http://digital.ni.com/public.nsf/allkb/930E95F6633AA2EB86256242004CEDD2
I presume that you can install the equivalent TrueType fonts on your Linux machine and use them. In Windows I check for a specific TrueType font right up front like this:
breakstat = SetBreakOnLibraryErrors(0);
err = GetFontTypefaceName ("Tahoma", tahomafontsname);
if (err < 0) {
MessagePopup("Missing Font","Program requires the 'Tahoma' font to be installed.");
exit(-1);
}
SetBreakOnLibraryErrors(breakstat);
Edit: A test program I posted ages ago here may be of use.
Hope this helps
--Ian
11-07-2008 07:10 AM
11-07-2008 09:10 AM
11-10-2008 11:38 AM
I'm not going to be able to get Guillaume to an answer -- others please chime in!
--Ian
11-11-2008 01:40 PM
If you are loading a uir that already has a defined font (with a specific size or other attribute) then there is not much you can do to change the resulting panel without resetting the fonts in the panel. Only when the font is saved as NIDialogMetaFont, NIAppMetaFont, NIEditorMetaFont, NIMenuMetaFont or NIMessageBoxMetaFont is a size adjustment made at load time. On Linux, we make an 11 point NIDialogMetaFont into an 8 point font so that it is sized correctly for your panel. If your panel stores that it needs an 11 point bold font then it is going to get a true 11 point font which is much larger than you expect. If you start with the NIDialogMetaFont on Linux and then apply the bold attribute, I think it should be about the right size. Additionally if you set the font to be much smaller, around 8 point, in the uir then it should size correctly as well.
We know that our handling of font sizes between Windows and Linux is very poor and it is on our to do list to update in a future version. We also intend to add True Type font support at the same time.
Michael
NI
11-13-2008 07:10 AM