Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Using fonts with Symbian and Maemo Platform

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Created: ebra (04 Dec 2007)
Last edited: hamishwillee (30 May 2013)


Comparing Symbian and Maemo Platforms

Symbian 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();

Maemo Platform

GdkFont* font = NULL;
font = gdk_font_from_description(
pango_font_description_from_string ("Monospace Regular 22"));
This page was last modified on 30 May 2013, at 04:41.
62 page views in the last 30 days.