Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Namespace glyph

Index

Variables

Const BASE_TEXTURE_LEVEL

BASE_TEXTURE_LEVEL: number

value = 0

Const DEFAULT_GLYPH_SIZE

DEFAULT_GLYPH_SIZE: number

Default size of glyphs in the sheet. value = 128

Const INVALID_HEIGHT

INVALID_HEIGHT: number

Glyph heights must be positive numbers. value = 0

Const MIN_MIPMAP_TILE_SIZE

MIN_MIPMAP_TILE_SIZE: number

value = 2

Const NEWLINE

NEWLINE: number

Newline character value = '\n'

Const NUL_CHAR

NUL_CHAR: number

Abbreviated name of the 'no-character' in unicode. value = 0

Const SPACE_CHAR

SPACE_CHAR: number

Space character value = ' '

Const TAB_CHAR

TAB_CHAR: number

Tab character value = '\t'

Functions

FromSizeRatio

GetSizeRatio

IsNegative

IsSpecialCharacter

  • IsSpecialCharacter(charCode: number): boolean
  • Parameters

    • charCode: number

    Returns boolean

    true for characters, such as SPACE_CHAR, that are used for typesetting and do not have a visual representation.

IsVertical

PixelFormatNormalizationFactor

  • PixelFormatNormalizationFactor(tileSize: number): number
  • For scaling glyph metrics in 26.6 pixel format (i.e., 1/64th of pixels); see the FT manual. Divide FreeType glyph metrics by this value to normalize.

    Parameters

    • tileSize: number

    Returns number

RequiresPreconditioning

  • RequiresPreconditioning(qualityLevel: Quality): boolean
  • Parameters

    Returns boolean

    true if the "prefont" tool is required to precondition the font prior to loading it as a resource.

Generated using TypeDoc