PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / EmbeddedFonts Property

In This Topic
    EmbeddedFonts Property (SampleC1PrintDocument)
    In This Topic
    Gets the collection of fonts embedded in the current document.

    If C1.C1Preview.C1PrintDocument.FontHandling property on the document has been set to C1.C1Preview.FontHandling.EmbedFonts or C1.C1Preview.FontHandling.EmbedActualFonts, this collection is populated automatically when the document generates.

    Otherwise, this collection is not populated automatically. But you can add fonts to this collection in code, so that just the added fonts will be embedded in the document. Note that in that case you must also explicitly specify the glyphs to include by calling the C1.C1Preview.EmbeddedFont.AddGlyphs method or any of its overloads.

    Syntax
    'Declaration
     
    Public ReadOnly Property EmbeddedFonts As EmbeddedFontCollection
    public EmbeddedFontCollection EmbeddedFonts {get;}
    See Also