Click or drag to resize
Pdf Library for .NET

PdfFontCreateCJKFont Method

Creates a PdfFont from a standard Korean / Japanese / Chinese (CJK) font family. Like CreateStandardFont(PdfStandardFont, Single), these fonts are referenced by name (not embedded) — they ship with PDF/A-compliant readers, so the output is expected to render on any conforming viewer.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public static PdfFont CreateCJKFont(
	PdfStandardCJKFont cjkFontFamily,
	float size
)

Parameters

cjkFontFamily  PdfStandardCJKFont
The standard CJK font family.
size  Single
The font size in points.

Return Value

PdfFont
A new PdfFont instance for the specified CJK font.
Example
PdfFont cjk =
    PdfFont.CreateCJKFont(PdfStandardCJKFont.HeiseiKakuGothicW5, 16f);
See Also