Skip to main content

Font

class Font

Fonts are a set of patterns, varieties or collections of typographic characters with the same design or attributes, that is, they are letters, symbols, and numbers customizable with the existence of various types of handwriting.


public class Font

— Methods (5) —

NameDescription
int getResolution()Returns the resolution of the font.
float measureWidth(String text)Calculate the text width using this font.
float measureWidth(String[] lines)Calculate the text width using this font.
float measureHeight(String text)Calculate the text height using this font.
float measureHeight(String[] lines)Calculate the text height using this font.