Hello, :hello:
I've been playing with SketchPad recently and I found it rather straightforward. There is, however, a point that is very unclear to me.
The "oapiCreateFont" function is supposed to allow you importing fonts into the graphic client. So, according to what I've seen in the Deltaglider SDK sample, it works that way :
Problem is the char * face parameter, in bold above. In "Draw.h" we can read this :
This is where I get lost.
What I am supposed to write as a string ? The name of the font file located in Windows\Fonts ?
I don't get that part at all :
How the function "translates" Fixed or Sans to an "appropriate specific font" ? How to have control on what "appropriate specific font" is chosen ?
To sum it up, I want to display a Cyrillic font on Orbiter HUD from my (european) computer. I have a Cyrillic font but can't get it into Orbiter.
Thanks for your help, :tiphat:
I've been playing with SketchPad recently and I found it rather straightforward. There is, however, a point that is very unclear to me.
The "oapiCreateFont" function is supposed to allow you importing fonts into the graphic client. So, according to what I've seen in the Deltaglider SDK sample, it works that way :
Code:
oapi::Font *font = oapiCreateFont (17, false, "[B]MyFont[/B]", FONT_NORMAL);
skp->SetFont(font);
...
mycode...
...
skp->ReleaseFont(font)
Problem is the char * face parameter, in bold above. In "Draw.h" we can read this :
* \note Overloaded font implementations should understand at least the
* following generic face names: "Fixed" (fixed pitch font), "Sans"
* (sans-serif font, and "Serif" (serif font) and translate them to
* appropriate specific fonts, e.g. "Courier" or "Courier New" for "Fixed",
* "Helvetica" or "Arial" for "Sans", and "Times" or "Times New Roman" for
* "Serif".
* \note If a font name is not recognised, the \e prop value should be
* checked. If prop==true, the default "Sans" font should be used. If
* false, the default "Fixed" font should be used.
*/
This is where I get lost.
What I am supposed to write as a string ? The name of the font file located in Windows\Fonts ?
I don't get that part at all :
* following generic face names: "Fixed" (fixed pitch font), "Sans"
* (sans-serif font, and "Serif" (serif font) and translate them to
* appropriate specific fonts, e.g. "Courier" or "Courier New" for "Fixed",
* "Helvetica" or "Arial" for "Sans", and "Times" or "Times New Roman" for
* "Serif".
How the function "translates" Fixed or Sans to an "appropriate specific font" ? How to have control on what "appropriate specific font" is chosen ?
To sum it up, I want to display a Cyrillic font on Orbiter HUD from my (european) computer. I have a Cyrillic font but can't get it into Orbiter.
Thanks for your help, :tiphat: