7#ifndef PDF_FONT_CONFIG_WRAPPER_H
8#define PDF_FONT_CONFIG_WRAPPER_H
12FORWARD_DECLARE_FCONFIG();
22struct PODOFO_API PdfFontConfigSearchParams final
24 nullable<PdfFontStyle> Style;
25 PdfFontConfigSearchFlags Flags = PdfFontConfigSearchFlags::None;
27 std::string FontFamilyPattern;
69 std::string SearchFontPath(
const std::string_view
fontPattern,
const PdfFontConfigSearchParams&
params,
72 void AddFontDirectory(
const std::string_view&
path);
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.
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
PdfFontConfigSearchFlags
Definition PdfFontConfigWrapper.h:17
@ None
Do not add a default appearrance.
@ SkipMatchPostScriptName
Skip matching postscript font name.