Enum PdfCjkFontFamily
- Namespace
- Syncfusion.Pdf.Graphics
- Assembly
- Syncfusion.Pdf.Portable.dll
Specifies the type of CJK font.
public enum PdfCjkFontFamily
Fields
HanyangSystemsGothicMedium = 2
Represents the Hanyang Systems Gothic Medium font.
HanyangSystemsShinMyeongJoMedium = 3
Represents the Hanyang Systems shin myeong Jo Medium font.
HeiseiKakuGothicW5 = 0
Represents the Heisei kaku GothicW5 font.
HeiseiMinchoW3 = 1
Represents the Heisei MinchoW3 font.
MonotypeHeiMedium = 4
Represents the Monotype Hei Medium font.
MonotypeSungLight = 5
Represents the monotype sung Light font.
SinoTypeSongLight = 6
Represents the sinotype song light font.
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Add a page to the document.
PdfPage page = document.Pages.Add();
//Create PDF graphics for the page.
PdfGraphics graphics = page.Graphics;
//Set the standard font.
PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20);
//Draw the text.
graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0));
//Save the document.
document.Save("Output.pdf");
//Close the document.
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Add a page to the document.
Dim page As PdfPage = document.Pages.Add()
'Create PDF graphics for the page.
Dim graphics As PdfGraphics = page.Graphics
'Set the standard font.
Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20)
'Draw the text.
graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0))
'Save the document.
document.Save("Output.pdf")
'Close the document.
document.Close(True)