Để in font riêng, cần khởi tạo:
- Đối tượng
FontFamily(kiểu font: Arial, TimesNewRoman...) - Đối tượng
Font(kích thước, style)
Tạo font Arial in đậm size 20 pixel:
FontFamily myFontFamily = new FontFamily("Arial");
Font myFont = new Font(myFontFamily, 20, FontStyle.Bold, GraphicsUnit.Pixel);
Tham số đầu của Font() là FontFamily, tiếp theo là size, rồi style.