class GlyphSample |
Provides methods to map a TLanguage type to some pre-defined glyph samples. Samples are defined per writing script, e.g. specifying ELangFrench or ELangGerman will return the same set of samples. These samples are typically the tallest and 'deep'est characters w.r.t various scripts, useful for font rasterizers when calculating metrics.
Public Member Functions | |
---|---|
IMPORT_C TInt | TLanguage2TScript(TLanguage) |
IMPORT_C const TPtrC | TScript2GlyphSample(TInt) |
Public Member Enumerations | |
---|---|
enum | TScript { EScriptDefault = 0x0, EScriptNone = 0x1, EScriptOther = 0x2, EScriptLatin = 0x3, EScriptGreek = 0x4, EScriptCyrillic = 0x5, EScriptHebrew = 0x6, EScriptArabic = 0x7, EScriptDevanagari = 0x8, EScriptThai = 0x9, EScriptHanIdeographs = 0xA } |
Private Attributes | |
---|---|
const TInt | KTLanguage2TScript |
const TText *const | KTScript2GlyphSample |
IMPORT_C TInt | TLanguage2TScript | ( | TLanguage | aLanguage | ) | [static] |
Maps a TLanguage type to the TScript type.
TLanguage aLanguage | The language. |
IMPORT_C const TPtrC | TScript2GlyphSample | ( | TInt | aScript | ) | [static] |
Maps a TScript type to some glyph samples which are stored as Unicode.
TInt aScript | The script. |
Writing scripts defined according to Unicode.
EScriptDefault = 0x0 | |
EScriptNone = 0x1 | |
EScriptOther = 0x2 | |
EScriptLatin = 0x3 | |
EScriptGreek = 0x4 | |
EScriptCyrillic = 0x5 | |
EScriptHebrew = 0x6 | |
EScriptArabic = 0x7 | |
EScriptDevanagari = 0x8 | |
EScriptThai = 0x9 | |
EScriptHanIdeographs = 0xA |
const TInt | KTLanguage2TScript | [private, static] |
Maps TLanguage to TScript.
EScriptOther represents languages not yet supported in KTScript2GlyphSample. This array does not handle ELangNone and ELangMaximum to save storage space.
const TText *const | KTScript2GlyphSample | [private, static] |
Maps TScript to glyph samples.
The order of samples definition has to follow the script order in TScript.
Supported scripts Fonts used to experiment/determine glyph samples
Latin Arial, Times, Century Greek Ditto Cyrillic Ditto Hebrew Aharoni, David, FrankRuehl, Levenim MT, Miriam, Narkisim, Rod Arabic Andalus, Arabic Transparent, Simplified Arabic, Traditional Arabic Devanagari Mangal Thai Angsana New, Browallia, Cordia New, DilleniaUPC, EucrosiaUPC, FreesiaUPC, IrisUPC, JasmineUPC, KodchiangUPC, LilyUPC HanIdeographs Chinese : SimSun, SimHei (Simplified) / MingLiU (Traditional) Japanese: MS Mincho, MS Gothic Korean : Batang, Gulim
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.