This page was last modified 14:04, 16 April 2008.
Usando Fontes nas Plataformas S60 e Maemo
From Forum Nokia Wiki
Original: Using_fonts_with_S60_and_Maemo_Platform
Comparação
Comparando as Plataformas S60 e Maemo
Plataforma S60
// 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();
Plataforma Maemo
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 |
| createImage leaks memory | mariusfahlbusch | Mobile Java General | 20 | 2005-02-07 10:36 |
| My idea | rulirahm | Series 40 & S60 Platform Feedback | 4 | 2006-03-16 08:10 |
| What is the best S60 3rd machine for developer? | zesky | General Symbian C++ | 6 | 2008-01-03 02:28 |
| abld helloworld出错,真是郁闷阿! | lorjer | Symbian | 3 | 2004-11-12 13:43 |
| How to build user libraries? | dmks | General Symbian C++ | 3 | 2007-12-03 21:58 |
