5#ifndef PDF_FONT_CONFIG_WRAPPER_H
6#define PDF_FONT_CONFIG_WRAPPER_H
10FORWARD_DECLARE_FCONFIG();
20struct PODOFO_API PdfFontConfigSearchParams final
22 nullable<PdfFontStyle> Style;
23 PdfFontConfigSearchFlags Flags = PdfFontConfigSearchFlags::None;
25 std::string FontFamilyPattern;
46#ifdef PODOFO_3RDPARTY_INTEROP_ENABLED
65 std::string SearchFontPath(
const std::string_view
fontPattern,
const PdfFontConfigSearchParams&
params,
68 void AddFontDirectory(
const std::string_view&
path);
74 void createDefaultConfig();
This file should be included as the FIRST file in every header of PoDoFo lib.
This class initializes and destroys the FontConfig library.
Definition PdfFontConfigWrapper.h:39
std::string SearchFontPath(const std::string_view fontPattern, unsigned &faceIndex)
Get the path of a font file on a Unix system using fontconfig.
PdfFontConfigWrapper(const std::string_view &configStr)
Create a new FontConfigWrapper from a XML config string.
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
PdfFontConfigSearchFlags
Definition PdfFontConfigWrapper.h:15
@ None
Do not add a default appearance.
@ SkipMatchPostScriptName
Skip matching postscript font name.