File Formats

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfCjkFontFamily

    Show / Hide Table of Contents

    Enum PdfCjkFontFamily

    Specifies the type of CJK font.

    Namespace: Syncfusion.Pdf.Graphics
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfCjkFontFamily
    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)

    Fields

    Name Description
    HanyangSystemsGothicMedium

    Represents the Hanyang Systems Gothic Medium font.

    HanyangSystemsShinMyeongJoMedium

    Represents the Hanyang Systems shin myeong Jo Medium font.

    HeiseiKakuGothicW5

    Represents the Heisei kaku GothicW5 font.

    HeiseiMinchoW3

    Represents the Heisei MinchoW3 font.

    MonotypeHeiMedium

    Represents the Monotype Hei Medium font.

    MonotypeSungLight

    Represents the monotype sung Light font.

    SinoTypeSongLight

    Represents the sinotype song light font.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved