pixelperfectengine ~master (2023-12-13T21:18:59Z)
Dub
Repo
Fontset.getTextLength
pixelperfectengine
graphics
fontsets
Fontset
Returns the width of the text in pixels.
class
Fontset
(T)
@
nogc
@
safe
nothrow pure
int
getTextLength
(
dstring
text
)
if
(
T.stringof
==
Bitmap8Bit.stringof
||
T.stringof
==
Bitmap16Bit.stringof
||
T.stringof
==
Bitmap32Bit.stringof
)
Meta
Source
See Implementation
pixelperfectengine
graphics
fontsets
Fontset
aliases
CharMap
KerningMap
constructors
this
functions
breakTextIntoMultipleLines
chars
getKerning
getName
getTextLength
size
structs
KerningInfo
variables
_chars
_kerning
pages
Returns the width of the text in pixels.