Skip to content

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

License

Notifications You must be signed in to change notification settings

Seef0x/MultiFontText

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages