ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. dxGetFontInfo

Function

dxGetFontInfo

ClientDrawing (dx)Trilogy Hub only

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