7 #ifndef PDF_FONT_CONFIG_WRAPPER_H
8 #define PDF_FONT_CONFIG_WRAPPER_H
12 FORWARD_DECLARE_FCONFIG();
22 struct PODOFO_API PdfFontConfigSearchParams final
24 nullable<PdfFontStyle> Style;
27 std::string FontFamilyPattern;
68 std::string
SearchFontPath(
const std::string_view fontPattern,
unsigned& faceIndex);
69 std::string SearchFontPath(
const std::string_view fontPattern,
const PdfFontConfigSearchParams& params,
72 void AddFontDirectory(
const std::string_view& path);
74 FcConfig* GetFcConfig();
80 void createDefaultConfig();
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
This class initializes and destroys the FontConfig library.
Definition: PdfFontConfigWrapper.h:43
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.
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16
@ None
Do not add a default appearrance.
PdfFontConfigSearchFlags
Definition: PdfFontConfigWrapper.h:17
@ SkipMatchPostScriptName
Skip matching postscript font name.