Culture-Sensitive C# Method
Using System.Drawing
public Font(Font prototype, FontStyle style);
public Font(FontFamily family, float emSize);
public Font(FontFamily family, float emSize, FontStyle style);
public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit);
public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet);
public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont);
public Font(FontFamily family, float emSize, GraphicsUnit unit);
public Font(string familyName, float emSize);
public Font(string familyName, float emSize, FontStyle style);
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit);
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet);
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont);
public Font(string familyName, float emSize, GraphicsUnit unit);
Internationalization (I18n) Method Overview
The Font constructor creates a new font.
For more information see Microsoft's
MSDN online documentation.
I18n Issues
To support Unicode you want to make sure that the font supports Unicode and can be set based on Locale.
You don't want hard-coded font names in the source code.
C# Encoding Information
|