Font

org.nspl.Font$
See theFont companion class
object Font

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Font.type

Members list

Concise view

Type members

Classlikes

A GlyphMeasurer can compute line metrics from a font. Implementations of this trait are specific to a rendering context

A GlyphMeasurer can compute line metrics from a font. Implementations of this trait are specific to a rendering context

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class LineMetrics(ascent: Double, descent: Double, leading: Double)

Holds line metrics data

Holds line metrics data

For the meaning of the members see https://docs.oracle.com/javase/tutorial/2d/text/fontconcepts.html

Ascent is the distance from the baseline to the typical highest point of the letter (ascender line). Descent is the distance from the baseline to the typical lowest point of the letter (descender line). Leading is the gap between lines, i.e. distance from the descender line to the next line's ascender line.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any