JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.graph.font.FontFactory Class Reference

The optional property jogamp.graph.font.ctor allows user to specify the FontConstructor implementation. More...

Collaboration diagram for com.jogamp.graph.font.FontFactory:

Static Public Member Functions

static final FontSet getDefault ()
 
static final FontSet get (final int font)
 
static final Font get (final File file) throws IOException
 Creates a Font instance. More...
 
static final Font get (final InputStream stream, final int streamLen, final boolean closeStream) throws IOException
 Creates a Font instance based on a determinated font stream with its given length of the font segment. More...
 
static final Font get (final InputStream stream, final boolean closeStream) throws IOException
 Creates a Font instance based on an undeterminated font stream length. More...
 
static final Font get (final Class<?> context, final String fname, final boolean useTempJarCache) throws IOException
 
static boolean isPrintableChar (final char c)
 
static Font getDefaultFont ()
 Returns default Font of default FontSet or null if n/a. More...
 
static Font getSymbolsFont ()
 Returns the default symbols Font or null if n/a. More...
 
static synchronized Font getFallbackFont ()
 Returns registered fallback Font, maybe null. More...
 
static synchronized void setFallbackFont (final Font f)
 Registers given Font as the default fallback font. More...
 

Static Public Attributes

static final int UBUNTU = 0
 Ubuntu is the default font family, {@value}. More...
 
static final int SYMBOLS = 10
 Symbols is the default symbol font family and contains rounded material symbol fonts, {@value}. More...
 

Detailed Description

The optional property jogamp.graph.font.ctor allows user to specify the FontConstructor implementation.

Default FontConstructor is jogamp.graph.font.typecast.TypecastFontConstructor, i.e. using our internal typecast branch.

Definition at line 56 of file FontFactory.java.

Member Function Documentation

◆ get() [1/5]

static final Font com.jogamp.graph.font.FontFactory.get ( final Class<?>  context,
final String  fname,
final boolean  useTempJarCache 
) throws IOException
static

Definition at line 192 of file FontFactory.java.

◆ get() [2/5]

static final Font com.jogamp.graph.font.FontFactory.get ( final File  file) throws IOException
static

Creates a Font instance.

Parameters
filefont file
Returns
the new Font instance
Exceptions
IOException

Definition at line 100 of file FontFactory.java.

◆ get() [3/5]

static final Font com.jogamp.graph.font.FontFactory.get ( final InputStream  stream,
final boolean  closeStream 
) throws IOException
static

Creates a Font instance based on an undeterminated font stream length.

The font stream is temporarily copied into a temp file to gather it's size and to gain random access. The temporary file will be deleted at exit.

Parameters
streamdedicated font stream
closeStreamtrue to close the stream
Returns
the new Font instance
Exceptions
IOException

Definition at line 139 of file FontFactory.java.

◆ get() [4/5]

static final Font com.jogamp.graph.font.FontFactory.get ( final InputStream  stream,
final int  streamLen,
final boolean  closeStream 
) throws IOException
static

Creates a Font instance based on a determinated font stream with its given length of the font segment.

No explicit stream copy is performed as in get(InputStream, boolean) due to the known streamLen.

Parameters
streamfont stream
streamLenlength of the font segment within this font stream
closeStreamtrue to close the stream
Returns
the new Font instance
Exceptions
IOException

Definition at line 117 of file FontFactory.java.

◆ get() [5/5]

static final FontSet com.jogamp.graph.font.FontFactory.get ( final int  font)
static

Definition at line 85 of file FontFactory.java.

Here is the caller graph for this function:

◆ getDefault()

static final FontSet com.jogamp.graph.font.FontFactory.getDefault ( )
static

Definition at line 81 of file FontFactory.java.

Here is the caller graph for this function:

◆ getDefaultFont()

static Font com.jogamp.graph.font.FontFactory.getDefaultFont ( )
static

Returns default Font of default FontSet or null if n/a.

Definition at line 222 of file FontFactory.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFallbackFont()

static synchronized Font com.jogamp.graph.font.FontFactory.getFallbackFont ( )
static

Returns registered fallback Font, maybe null.

See setFallbackFont(Font).

Definition at line 242 of file FontFactory.java.

Here is the caller graph for this function:

◆ getSymbolsFont()

static Font com.jogamp.graph.font.FontFactory.getSymbolsFont ( )
static

Returns the default symbols Font or null if n/a.

Definition at line 232 of file FontFactory.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isPrintableChar()

static boolean com.jogamp.graph.font.FontFactory.isPrintableChar ( final char  c)
static

Definition at line 210 of file FontFactory.java.

◆ setFallbackFont()

static synchronized void com.jogamp.graph.font.FontFactory.setFallbackFont ( final Font  f)
static

Registers given Font as the default fallback font.

Definition at line 246 of file FontFactory.java.

Here is the caller graph for this function:

Member Data Documentation

◆ SYMBOLS

final int com.jogamp.graph.font.FontFactory.SYMBOLS = 10
static

Symbols is the default symbol font family and contains rounded material symbol fonts, {@value}.

Definition at line 64 of file FontFactory.java.

◆ UBUNTU

final int com.jogamp.graph.font.FontFactory.UBUNTU = 0
static

Ubuntu is the default font family, {@value}.

Definition at line 61 of file FontFactory.java.


The documentation for this class was generated from the following file: