glyph

lumin. glyph

Classes

AdvanceDirection
Font2dDesc
Metrics
Metrics
Quality
TextureSize
TileInfo

Namespaces

kerning

Members

(static, constant) BASE_TEXTURE_LEVEL :number

Type:
  • number

(static, constant) DEFAULT_GLYPH_SIZE :number

Default size of glyphs in the sheet.

Type:
  • number

(static, constant) INVALID_HEIGHT :number

Glyph heights must be positive numbers.

Type:
  • number

(static, constant) MIN_MIPMAP_TILE_SIZE :number

Type:
  • number

(static, constant) NEWLINE :number

Newline character

Type:
  • number

(static, constant) NUL_CHAR :number

Abbreviated name of the 'no-character' in unicode.

Type:
  • number

(static, constant) SPACE_CHAR :number

Space character

Type:
  • number

(static, constant) TAB_CHAR :number

Tab character

Type:
  • number

Methods

(static) FromSizeRatio(sizeRatio) → {lumin.glyph.TextureSize}

Gets texture size from ratio.

Parameters:
Name Type Description
sizeRatio number
Returns:
Type
lumin.glyph.TextureSize

(static) GetSizeRatio(size) → {number}

Ratio of the texture size to the tile size: MEDIUM = 1.0, LARGE = 2.0.

Parameters:
Name Type Description
size lumin.glyph.TextureSize
Returns:
Type
number

(static) IsNegative(direction) → {boolean}

Negative pen advance (i.e., left or down).

Parameters:
Name Type Description
direction lumin.glyph.AdvanceDirection
Returns:
Type
boolean

(static) IsSpecialCharacter(charCode) → {boolean}

Parameters:
Name Type Description
charCode number
Returns:

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

Type
boolean

(static) IsVertical(direction) → {boolean}

Vertical layout (i.e., up or down).

Parameters:
Name Type Description
direction lumin.glyph.AdvanceDirection
Returns:
Type
boolean

(static) PixelFormatNormalizationFactor(tileSize) → {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:
Name Type Description
tileSize number
Returns:
Type
number

(static) RequiresPreconditioning(qualityLevel) → {boolean}

Parameters:
Name Type Description
qualityLevel lumin.glyph.Quality
Returns:

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

Type
boolean