Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

SkTypeface * SkTypeface::CreateFromName ( const char  familyName[],
Style  style 
) [static]

Return a new reference to the typeface that most closely matches the requested familyName and style. Pass null as the familyName to return the default font for the requested style. Will never return null

familyName May be NULL. The name of the font family.
style The style (normal, bold, italic) of the typeface.
reference to the closest-matching typeface. Call must call unref() when they are done.

Definition at line 30 of file SkTypeface.cpp.

References SkFontHost::CreateTypeface(), and NULL.

    return SkFontHost::CreateTypeface(NULL, name, style);

Generated by  Doxygen 1.6.0   Back to index