Namespaces
Variants
Actions

Usando Fontes nas Plataformas Symbian e Maemo

Jump to: navigation, search
Archived.png
Aquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

Acredita-se que este artigo ainda seja válido no contexto original (quando ele foi escrito)


Dados do artigo

Artigo
Tradução:
Última alteração feita por lpvalente em 24 Mar 2013

Contents

Introdução

este artigo faz uma comparação do uso de fontes em Symbian e Maemo.

Comparação

Comparando as Plataformas Symbian e Maemo

Plataforma Symbian

// 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"));
This page was last modified on 24 March 2013, at 21:50.
98 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved