PDA

View Full Version : createfont and font_create



sandyrepope
28-01-2008, 05:28
Could someone let me know what the difference is between createfont and font_create?

Thanks
Sandy

ErosOlmi
28-01-2008, 08:51
Both functions uses API CreateFont (http://msdn2.microsoft.com/en-us/library/ms534214(VS.85).aspx).

Font_Create has the following syntax: Font_Create(FontName, FontSize)
It is used for fast font creation and has no possibility to indicate anything else other than name and size.

CreateFont is a wrapper of API function and has the following syntax:
CreateFont(nHeight, nWidth, nEscapement, nOrientation, fnWeight, fdwItalic, fdwUnderline, _
fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily, lpszFace)
More or less the same API equivalent.

Sorry for missing help. I will create soon.
Ciao
Eros

sandyrepope
28-01-2008, 16:05
Eros. Thank you for the reply. Now I know for sure that font_create is what my program needs. All it needs is the size and name of the font.

Thanks
Sandy