nw::font::PairFont Class

Syntax

class PairFont : public nw::font::Font

Description

It holds two fonts internally, but they are handled in the same way as a single font.

A font pair's font information and sheet information match that of the wider or taller internal font. As a result, it is possible that the intended results will not be obtained if the two fonts that are used as a font pair have differing character rendering information, such as the baseline position.

Enumerated Types

Type (Derived from Font)

Member Constants

S INVALID_CHARACTER_CODE (Derived from Font)

Member Functions

Constructors/Destructors
PairFont Constructor.
V ~PairFont Destructor.
Getting Font Data
V GetWidth Gets the width of the font.
V GetHeight Gets the font height.
V GetAscent Gets the ascent of the font.
V GetDescent Gets the font descent.
V GetMaxCharWidth Gets the maximum character width included in the font.
V GetType Gets the font type.
V GetTextureFormat Gets the texture format of the font.
V GetLineFeed Gets the size of the font's linefeed.
V GetDefaultCharWidths Gets the font's default character width data.
Setting Font Data
V SetDefaultCharWidths Sets the font's default character width data.
V SetAlternateChar Changes the alternate character for the font.
V SetLineFeed Sets the linefeed width of the font.
Getting Character Data
V GetCharWidth Gets the character width of a character.
V GetCharWidths Gets character width data for characters.
V GetGlyph Gets glyph data.
V HasGlyph Gets the existence (or nonexistence) of glyph data.
Text Encoding
V GetCharacterCode Gets the character code supported by the font.
GetCharStrmReader Gets CharStrmReader, used to interpret text in the character code format the font supports.(Derived from Font)
Getting Sheet Information
V GetBaselinePos Gets the baseline position.
V GetCellHeight Gets the cell height.
V GetCellWidth Gets the cell width.
Texture Interpolation
V EnableLinearFilter Specifies whether or not linear interpolation of textures is performed while characters are drawn.
V IsLinearFilterEnableAtSmall Gets whether or not linear interpolation is to be carried out when small characters are displayed.
V IsLinearFilterEnableAtLarge Gets whether or not linear interpolation is to be carried out when large characters are displayed.
V GetTextureWrapFilterValue Gets the values for the texture's wrap and filter settings.

Class Hierarchy

nw::font::Font
  nw::font::PairFont

Revision History

2009/11/09
Initial version.

CONFIDENTIAL