Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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)

About

Allows to draw text with multiple fonts with just one function in Garry's Mod

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages