CreateFont: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (getfont)
m (added class)
Line 1: Line 1:
{{navbar-first|ISurface|AddCustomFontFile}}
{{navbar-first|ISurface|AddCustomFontFile}}
=[[HFont]] '''CreateFont'''()=
=[[HFont]] ISurface::'''CreateFont'''()=
Use this function before [[AddCustomFontFile]] to allocate an [[HFont]]. If there is a pointer to an [[IScheme]], use [[GetFont]] to retrieve a font from the scheme.
Use this function before [[AddCustomFontFile]] to allocate an [[HFont]]. If there is a pointer to an [[IScheme]], use [[GetFont]] to retrieve a font from the scheme.
[[Category:ISurface]]
[[Category:ISurface]]

Revision as of 19:31, 28 June 2006

Return to ISurface AddCustomFontFile

HFont ISurface::CreateFont()

Use this function before AddCustomFontFile to allocate an HFont. If there is a pointer to an IScheme, use GetFont to retrieve a font from the scheme.