/tg/ Station 13 - Modules - TypesVar Details - Proc Details

font

A font datum, it exists to define a custom font to use in a span style later.

Vars

ascentdistance above baseline (including whitespace)
average_widthaverage character width
default_characterdefault character (for undefined chars)
descentdistance below baseline
endlast character in metrics
ex_leadingexternal leading vertical space, just plain blank
font_familyThe font file we link to.
heighttotal height of a line
in_leadinginternal leading vertical space, for accent marks
max_widthmaximum character width
metricsFont features and metrics Generated by Lummox's dmifontsplus (https://www.byond.com/developer/LummoxJR/DmiFontsPlus) Note: these variable names have been changed, so you can't straight copy/paste from dmifontsplus.exe list of font size/spacing metrics
nameFont name, just so people know what to put in their span style.
overhangextra width, such as from italics, for a line
startfirst character in metrics

Procs

get_metricsGet font metrics From Lummox's dmifontsplus (https://www.byond.com/developer/LummoxJR/DmiFontsPlus)

Var Details

ascent

distance above baseline (including whitespace)

average_width

average character width

default_character

default character (for undefined chars)

descent

distance below baseline

end

last character in metrics

ex_leading

external leading vertical space, just plain blank

font_family

The font file we link to.

height

total height of a line

in_leading

internal leading vertical space, for accent marks

max_width

maximum character width

metrics

Font features and metrics Generated by Lummox's dmifontsplus (https://www.byond.com/developer/LummoxJR/DmiFontsPlus) Note: these variable names have been changed, so you can't straight copy/paste from dmifontsplus.exe list of font size/spacing metrics

name

Font name, just so people know what to put in their span style.

overhang

extra width, such as from italics, for a line

start

first character in metrics

Proc Details

get_metrics

Get font metrics From Lummox's dmifontsplus (https://www.byond.com/developer/LummoxJR/DmiFontsPlus)