Default Fonts

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Added link to Source SDK's default fonts definition)
Line 26: Line 26:
  
 
You can create custom fonts with {{LibraryFunction|surface|CreateFont}}.
 
You can create custom fonts with {{LibraryFunction|surface|CreateFont}}.
 +
 +
Default fonts are defined in [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/game/mod_hl2mp/resource/ClientScheme.res#L275 the Source SDK's ClientScheme.res]
  
 
Sample image:
 
Sample image:

Revision as of 12:36, 15 July 2017

Here is a list of fonts that is available for use by default:

  • DebugFixed
  • DebugFixedSmall
  • Default
  • Marlett
  • Trebuchet18
  • Trebuchet24
  • HudHintTextLarge
  • HudHintTextSmall
  • CenterPrintText
  • HudSelectionText
  • CloseCaption_Normal
  • CloseCaption_Bold
  • CloseCaption_BoldItalic
  • ChatFont
  • TargetID
  • TargetIDSmall
  • HL2MPTypeDeath
  • BudgetLabel
  • HudNumbers

There are also a bunch of new fonts, these are:

  • DermaDefault - 13px Tahoma (Helvetica on mac), anti-aliased
  • DermaDefaultBold - same as above, but bold and not anti-aliased
  • DermaLarge - Roboto, 32px, anti-aliased

You can create custom fonts with surface.CreateFont.

Default fonts are defined in the Source SDK's ClientScheme.res

Sample image: fontlist.png

Personal tools
Navigation