TextSprites
gamnit :: Font :: defaultinit
gamnit :: Font :: partial_line_mod
Line spacing modifier forpld
and plu
gamnit :: Font :: partial_line_mod=
Line spacing modifier forpld
and plu
gamnit :: Font :: write_into
Backend writing service, clients should useTextSprites.text=
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
gamnit :: Font :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).gamnit :: Font :: partial_line_mod
Line spacing modifier forpld
and plu
gamnit :: Font :: partial_line_mod=
Line spacing modifier forpld
and plu
gamnit :: Font :: write_into
Backend writing service, clients should useTextSprites.text=
# Abstract font, drawn by a `TextSprites`
abstract class Font
# Line spacing modifier for `pld` and `plu`
#
# This value acts as multiplier to the standard line height.
# Defaults to 0.4, so a `pld` moves chars down by about half a line.
var partial_line_mod: Numeric = 0.4 is writable
# Backend writing service, clients should use `TextSprites.text=`
protected fun write_into(text_sprites: TextSprites, text: Text) is abstract
end
lib/gamnit/font.nit:20,1--31,3