- Documentation
- Client functions
- dxGetFontInfo
Function
dxGetFontInfo
Returns a font description: the typeface (family), the size in pixels (px) and points (size), style settings and the source.
Syntax
table dxGetFontInfo(string|font font)Arguments
fontstring|font- The font.
Returns
A description table.
Example
local info = dxGetFontInfo("pricedown")
outputChatBox(info.family .. " " .. info.px .. " px")
See also
dxCreateFontCreates a font from a resource TTF/OTF file or from a system typeface (pass its name). The size is in points. Pass the font todxDrawTextandguiSetFont.dxSetFontStyleChanges the style of a font fromdxCreateFont:bold,italic,underline,strike,weight,spacing,widthScale,shadow,outline,outlineColor,gradient,lineSpacing,size. Pass one key or a table.