font ![interface/fonts/fonts_datum.dm 2](git.png)
A font datum, it exists to define a custom font to use in a span style later.
Vars | |
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 |
Procs | |
get_metrics | Get font metrics From Lummox's dmifontsplus (https://www.byond.com/developer/LummoxJR/DmiFontsPlus) |
Var Details
ascent ![interface/fonts/fonts_datum.dm 17](git.png)
distance above baseline (including whitespace)
average_width ![interface/fonts/fonts_datum.dm 21](git.png)
average character width
default_character ![interface/fonts/fonts_datum.dm 31](git.png)
default character (for undefined chars)
descent ![interface/fonts/fonts_datum.dm 19](git.png)
distance below baseline
end ![interface/fonts/fonts_datum.dm 37](git.png)
last character in metrics
ex_leading ![interface/fonts/fonts_datum.dm 29](git.png)
external leading vertical space, just plain blank
font_family ![interface/fonts/fonts_datum.dm 6](git.png)
The font file we link to.
height ![interface/fonts/fonts_datum.dm 15](git.png)
total height of a line
in_leading ![interface/fonts/fonts_datum.dm 27](git.png)
internal leading vertical space, for accent marks
max_width ![interface/fonts/fonts_datum.dm 23](git.png)
maximum character width
metrics ![interface/fonts/fonts_datum.dm 13](git.png)
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 ![interface/fonts/fonts_datum.dm 4](git.png)
Font name, just so people know what to put in their span style.
overhang ![interface/fonts/fonts_datum.dm 25](git.png)
extra width, such as from italics, for a line
start ![interface/fonts/fonts_datum.dm 33](git.png)
first character in metrics
Proc Details
get_metrics
Get font metrics From Lummox's dmifontsplus (https://www.byond.com/developer/LummoxJR/DmiFontsPlus)