1 disable freetype dependent code
3 --- poppler/poppler/Form.cc.orig 2023-06-05 19:29:14.000000000 +0900
4 +++ poppler/poppler/Form.cc 2023-06-14 18:50:22.232312300 +0900
9 -#include "goo/ft_utils.h"
10 +//#include "goo/ft_utils.h"
12 #include "goo/gfile.h"
13 #include "goo/GooString.h"
15 #include "fofi/FoFiTrueType.h"
16 #include "fofi/FoFiIdentifier.h"
18 -#include <ft2build.h>
19 -#include FT_FREETYPE_H
20 +//#include <ft2build.h>
21 +//#include FT_FREETYPE_H
22 #include <unordered_set>
24 // helper for using std::visit to get a dependent false for static_asserts
27 Form::AddFontResult Form::addFontToDefaultResources(const std::string &filepath, int faceIndex, const std::string &fontFamily, const std::string &fontStyle, bool forceName)
31 if (!GooString::endsWith(filepath, ".ttf") && !GooString::endsWith(filepath, ".ttc") && !GooString::endsWith(filepath, ".otf")) {
32 error(errIO, -1, "We only support embedding ttf/ttc/otf fonts for now. The font file for {0:s} {1:s} was {2:s}", fontFamily.c_str(), fontStyle.c_str(), filepath.c_str());
37 return { dictFontName, fontDictRef };
41 std::string Form::getFallbackFontForChar(Unicode uChar, const GfxFont &fontToEmulate) const