Categories: S60 | Maemo
This page was last modified 14:37, 10 December 2007.
Using fonts with S60 and Maemo Platform
From Forum Nokia Wiki
Comparison
Comparing S60 and Maemo Platforms
S60 Platform
// Abstract font interface const CFont* iFont; // EAknLogicalFontPrimaryFont // EAknLogicalFontSecondaryFont // EAknLogicalFontTitleFont iFont = AknLayoutUtils::FontFromId(EAknLogicalFontPrimaryFont);
// A graphics device to which a bitmap managed by the font and bitmap server can be drawn
CFbsScreenDevice* iFbsScrDev;
// Abstract font interface
CFont* iFont;
// Create a font spec in order to retrieve a valid font
// TFontSpec(const TDesC &aTypefaceName, TInt aHeight);
_LIT(KFontFamily, "S60 Sans");
TFontSpec fs(KFontFamily, 100);
iFbsScrDev->GetNearestFontInTwips((CFont*&)iFont, fs);
CWindowGc& gc = SystemGc(); gc.UseFont(iFont); ... gc.DiscardFont();
Maemo Platform
GdkFont* font = NULL;
font = gdk_font_from_description(
pango_font_description_from_string ("Monospace Regular 22"));
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| One .sis file for S60 0.9 and S60 2.0 | Bernd42 | Symbian Tools & SDKs | 8 | 2005-08-16 04:01 |
| buttons? | kurtrips | General Symbian C++ | 1 | 2004-07-28 14:49 |
| S60 3rd Edition FP1 failed to initialize session | sanjangr | Mobile Java Tools & SDKs | 15 | 2008-03-28 13:45 |
| Open Source SIP Client for S60 Platform | arpitm | VoIP | 5 | 2007-10-19 07:33 |
| Font and Color | comando_c | Mobile Java General | 4 | 2004-03-18 14:37 |
