Class FontClient

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    FontClient provides access to font information and resources.

    public class FontClient : BaseHandle, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    FontClient
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Properties

    View Source

    Instance

    Gets the singleton pattern of the FontClient object.

    Declaration
    public static FontClient Instance { get; }
    Property Value
    Type Description
    FontClient

    Methods

    View Source

    AddCustomFontDirectory(string)

    Adds custom fonts directory.

    Declaration
    public bool AddCustomFontDirectory(string path)
    Parameters
    Type Name Description
    string path

    Path to the fonts directory.

    Returns
    Type Description
    bool

    True if the fonts can be added.

    View Source

    FindDefaultFont(uint, uint, bool)

    Finds the default font for displaying a UTF-32 character.

    Declaration
    public uint FindDefaultFont(uint charcode, uint requestedPointSize, bool preferColor)
    Parameters
    Type Name Description
    uint charcode

    The character for which a font is needed.

    uint requestedPointSize

    The point size in 26.6 fractional points. The default point size is 12*64.

    bool preferColor

    True if a color font is preferred.

    Returns
    Type Description
    uint

    A valid font identifier. Zero if the font does not exist.

    View Source

    FindDefaultFont(uint, uint)

    Find the default font for displaying a UTF-32 character.

    Declaration
    public uint FindDefaultFont(uint charcode, uint requestedPointSize)
    Parameters
    Type Name Description
    uint charcode

    The character for which a font is needed.

    uint requestedPointSize

    The point size in 26.6 fractional points. The default point size is 12*64.

    Returns
    Type Description
    uint

    A valid font identifier. Zero if the font does not exist.

    View Source

    FindDefaultFont(uint)

    Find the default font for displaying a UTF-32 character.

    Declaration
    public uint FindDefaultFont(uint charcode)
    Parameters
    Type Name Description
    uint charcode

    The character for which a font is needed.

    Returns
    Type Description
    uint

    A valid font identifier. Zero if the font does not exist.

    View Source

    GetFontId(string, uint, uint)

    Retrieve the unique identifier for a font.

    Declaration
    public uint GetFontId(string path, uint requestedPointSize, uint faceIndex)
    Parameters
    Type Name Description
    string path

    The path to a font file.

    uint requestedPointSize

    The point size in 26.6 fractional points. The default point size is 12*64.

    uint faceIndex

    The index of the font face.

    Returns
    Type Description
    uint

    A valid font identifier. Zero if the font does not exist.

    View Source

    GetFontId(string, uint)

    Retrieve the unique identifier for a font.

    Declaration
    public uint GetFontId(string path, uint requestedPointSize)
    Parameters
    Type Name Description
    string path

    The path to a font file.

    uint requestedPointSize

    The point size in 26.6 fractional points. The default point size is 12*64.

    Returns
    Type Description
    uint

    A valid font identifier. Zero if the font does not exist.

    View Source

    GetFontId(string)

    Retrieve the unique identifier for a font.

    Declaration
    public uint GetFontId(string path)
    Parameters
    Type Name Description
    string path

    The path to a font file.

    Returns
    Type Description
    uint

    A valid font identifier. Zero if the font does not exist.

    View Source

    GetPointSize(uint)

    Retrieves the font point size of a given font id.

    Declaration
    public uint GetPointSize(uint id)
    Parameters
    Type Name Description
    uint id

    The font identifier.

    Returns
    Type Description
    uint

    The point size in 26.6 fractional points.

    View Source

    IsCharacterSupportedByFont(uint, uint)

    Whether the given character is supported by the font.

    Declaration
    public bool IsCharacterSupportedByFont(uint fontId, uint character)
    Parameters
    Type Name Description
    uint fontId

    The id of the font.

    uint character

    The character in a font.

    Returns
    Type Description
    bool

    True if the character is supported by the font.

    View Source

    IsScalable(string)

    Check to see if a font is scalable.

    Declaration
    public bool IsScalable(string path)
    Parameters
    Type Name Description
    string path

    The path where the font file is located.

    Returns
    Type Description
    bool

    True if scalable.

    View Source

    ResetSystemDefaults()

    Called when the user changes the system defaults.

    Declaration
    public void ResetSystemDefaults()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX