Dear everybody,
I would like to ask you 2 question :
- does Symbian support true font ?
- If not what kind of font does it support?
Thank you,
Teddy Kim
Font utilities
Description
In addition to the font utilities provided by CCoeEnv, GUI applications can access many others which are provided by CEikEnv.
CreateDeviceFontL()
CFbsFont* CreateDeviceFontL(CGraphicsDevice* aDevice,const TFontSpec& aFontSpec);
Description
Creates a font for the specified graphics device.
If you wish to use the default screen device as the graphics device, use CreateScreenFontL() instead of this function.
This function calls GetNearestFontInTwips() on the graphics device given by aDevice, passing it the font defined by aFontSpec.
All fonts should be released, using MGraphicsDeviceMap::ReleaseFont(), when they are no longer required.
Parameters
CGraphicsDevice* aDevice The graphics device for which to create the font.
const TFontSpec& aFontSpec The font specification.
CreateScreenFontL()
CFbsFont* CreateScreenFontL(const TFontSpec& aFontSpec);
Description
Creates a font for the default graphics device, based on the specified TFontSpec.
This function calls CreateDeviceFontL() passing the default screen device, owned by this CCoeEnv, as the value for the graphics device for which to create the font. All fonts created using this function should be released using ReleaseScreenFont() when they are no longer required.
Parameters
const TFontSpec& aFontSpec The font specification.
Thank for your helping , Mayankkedia, I already read the article of BDF specification, but I don't know where should I write that code? Could you help me about this problem.
Thx you again,
Teddy Kim
you can search in google for free bdf font. You can find some as it is also used in linux. And so, you know the way to make yr own bdf. And then you could complie bdf to sysmbian gdr using the tools provided by symbian.
If you install that DLL then you should be able to load TTF fonts. I don't remember exactly how to load them but take a look at the COpenFont classes in the SDK documentation.
Also, you may want to check out this thread that talks about the freetype library on the 7650.