Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1015 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 1015 Bytes

MultiFontText

Example:

hook.Add("HUDPaint", "HUDPaint_MultiFontText_Example", function()
  draw.MultiFontText(Color(255, 255, 255), ScrW()/2, ScrH()/2, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, "Roboto-Regular", "This text ", "Roboto-Black", "has multiple ", "Roboto-Italic", "different fonts")
end)

API Context:

Color: A color created with Color.

x: The X coordinate on the screen.

y: The Y coordinate on the screen.

xAlign: The alignment of the X coordinate using Enums/TEXT_ALIGN.

yAlign: The alignment of the Y coordinate using Enums/TEXT_ALIGN.

vararg: A vararg of fonts and strings. Any non string value will be converted to a string with tostring().

draw.MultiFontText(Font, x, y, xAlign, yAlign, vararg)