Kerning
final class Kerning
Package: dev.joid.tool.msdf.font · Module: tool-msdf · Source: Kerning.java
The kerning pairs of the requested code points, read from the GPOS table or the kern table of a font file.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
Kerning | read(FontFile file, Font font, int[] codepoints) factory | Reads the kerning of every pair of those code points that the font draws. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getUnitsPerEm() | Returns the units per em of the values. |
Map<Long,Integer> | getKerning() | Returns the non-zero kerning of each pair, in font units, by the two code points packed in a long, read-only. |
Creation details
Section titled “Creation details”Kerning read(FontFile file, Font font, int[] codepoints) factory
Reads the kerning of every pair of those code points that the font draws.
Method details
Section titled “Method details”getUnitsPerEm
Section titled “getUnitsPerEm”int getUnitsPerEm()
Returns the units per em of the values.
getKerning
Section titled “getKerning”Map<Long,Integer> getKerning()
Returns the non-zero kerning of each pair, in font units, by the two code points packed in a long, read-only.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
