Loading...
Searching...
No Matches
PixelCrushers.LocalizedFonts Class Reference

Specifies fonts to use for different languages. More...

Inheritance diagram for PixelCrushers.LocalizedFonts:
Collaboration diagram for PixelCrushers.LocalizedFonts:

Classes

class  FontForLanguage
 

Public Member Functions

Font GetFont (string language)
 Returns the font for a specified language, or default font if none.
 
float GetFontScale (string language)
 

Public Attributes

Font defaultFont
 
List< FontForLanguagefontsForLanguages = new List<FontForLanguage>()
 

Detailed Description

Specifies fonts to use for different languages.

Used by SetLocalizedFont and LocalizeUI.

Member Function Documentation

◆ GetFont()

Font PixelCrushers.LocalizedFonts.GetFont ( string  language)
inline

Returns the font for a specified language, or default font if none.

◆ GetFontScale()

float PixelCrushers.LocalizedFonts.GetFontScale ( string  language)
inline

Member Data Documentation

◆ defaultFont

Font PixelCrushers.LocalizedFonts.defaultFont

◆ fontsForLanguages

List<FontForLanguage> PixelCrushers.LocalizedFonts.fontsForLanguages = new List<FontForLanguage>()

The documentation for this class was generated from the following file: