1package com.jogamp.opengl.demos.graph;
3import java.io.IOException;
5import com.jogamp.common.util.IOUtil;
6import com.jogamp.graph.font.Font;
7import com.jogamp.graph.font.FontFactory;
8import com.jogamp.graph.font.FontSet;
17 fonts[i++] =
FontFactory.
get(IOUtil.getResource(
"fonts/freefont/FreeMono.ttf",
19 fonts[i++] =
FontFactory.
get(IOUtil.getResource(
"fonts/freefont/FreeMonoBold.ttf",
21 fonts[i++] =
FontFactory.
get(IOUtil.getResource(
"fonts/freefont/FreeSerif.ttf",
The optional property jogamp.graph.font.ctor allows user to specify the FontConstructor implementatio...
static final FontSet get(final int font)
static final int UBUNTU
Ubuntu is the default font family, {@value}.
static final int STYLE_ITALIC
ITALIC style bit flag, {@value}.
static final int FAMILY_LIGHT
Font family LIGHT, {@value}.
Font getDefault()
Returns the family FAMILY_REGULAR with STYLE_NONE as retrieved with get(int, int).
Font get(int family, int stylebits)
static final int STYLE_NONE
Zero style, {@value}.
Interface wrapper for font implementation.