Class ContourPlot.SignedDistanceCharacters
- Enclosing class:
ContourPlot
The signed distance fields for each character are stored in a single
image alongside a lookup table for the bounding rectangles for each
character within that image.
The set of characters used is defined in CHARACTERS which is
a String sorted by char value ascending.
Since the process of computing a SignedDistanceCharacters object is quite
time consuming, there are pre-computed SignedDistanceCharacters instances
for the Ubuntu Mono font used by JPlotter (see ContourPlot.FontProvider) which
are statically loaded from files.
These are located in .../resources/font/ alongside the corresponding
true type font files.
Similar to the ContourPlot.FontProvider.getUbuntuMono(float, int)
the
invalid reference
#getUbuntuMonoSDC(int)
- Author:
- hageldave
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCharacter set for instances ofContourPlot.SignedDistanceCharacters.protected static final ContourPlot.Imgprotected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
genFontSize
protected static final int genFontSize- See Also:
-
padding
protected static final int padding- See Also:
-
FONTMETRIC_IMG
-
CHARACTERS
Character set for instances ofContourPlot.SignedDistanceCharacters. Characters in this string are sorted by char value ascending.- See Also:
-
-
Constructor Details
-
SignedDistanceCharacters
public SignedDistanceCharacters()
-