Maven module :un.api : api-display :
Class : un.engine.painter2d.FontMetadata
Extends/Implements : -
Subclasses : -

Font informations.
Simplified mapping of TTF tables : head,hhea,hmtx,vhea,vmtx.
author  Johann Sorel


Variables : -
Functions : getGlyphBox, getAscent, getDescent, getLineGap, getAdvanceWidthMax, getAdvanceWidth, getAdvanceWidth, getMinLeftSideBearing, getMinRightSideBearing, getXMaxExtent, getCharBox, getCharsBox, derivate




Glyph max bounding boxes
return  BoundingBox never null
BBox getGlyphBox ()


Distance from baseline of highest ascender.
return  double
double getAscent ()


Distance from baseline of lowest descender.
return  double
double getDescent ()


typographic line gap.
return  double
double getLineGap ()


return  double
double getAdvanceWidthMax ()


param  unicode unicode code point
return  double
double getAdvanceWidth (int unicode)


param  c
return  double
double getAdvanceWidth (Char c)


return  double
double getMinLeftSideBearing ()


return  double
double getMinRightSideBearing ()


max(lsb + (xMax-xMin))
return  double
double getXMaxExtent ()


Calculate the bounding box for given c.
param  text
return  BoundingBox
BBox getCharBox (Char c)


Calculate the bounding box for given text.
param  text
return  BoundingBox
BBox getCharsBox (CharArray text)


Derivate this metadata for given font size.
param  fontSize from baseline to max ascent.
return  DefaultFontMetadata
FontMetadata derivate (double fontSize)