0cf9041e36
+ Filter Gallery + Modular grids & improved axonometric grids + Swatches dialog and palette file handling improved + Unified font browser preview + Customizable handles + Fast image clipping with the Shape Builder + Affinity Designer File Import + Support for internal links in exported PDF files + A whole new icon set + See the full release notes https://inkscape.org/release/inkscape-1.4 - Drop inkscape-poppler-24.03.0.patch, inkscape-libxml2.12.patch, inkscape-poppler-c++20.patch, inkscape-poppler-24.05.0.patch, inkscape-poppler-c++20-2.patch, inkscape_1.3.2_fix_tiff.patch, fixed upstream OBS-URL: https://build.opensuse.org/package/show/graphics/inkscape?expand=0&rev=121
47 lines
2.0 KiB
Diff
47 lines
2.0 KiB
Diff
Index: inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-transition-api.h
|
|
===================================================================
|
|
--- inkscape-1.3.2_2023-11-25_091e20ef0f.orig/src/extension/internal/pdfinput/poppler-transition-api.h
|
|
+++ inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-transition-api.h
|
|
@@ -13,6 +13,15 @@
|
|
#define SEEN_POPPLER_TRANSITION_API_H
|
|
|
|
#include <glib/poppler-features.h>
|
|
+#include <poppler/UTF.h>
|
|
+
|
|
+#if POPPLER_CHECK_VERSION(24, 5, 0)
|
|
+#define _POPPLER_HAS_UNICODE_BOM(value) (hasUnicodeByteOrderMark(value->toStr()))
|
|
+#define _POPPLER_HAS_UNICODE_BOMLE(value) (hasUnicodeByteOrderMarkLE(value->toStr()))
|
|
+#else
|
|
+#define _POPPLER_HAS_UNICODE_BOM(value) (value->hasUnicodeMarker())
|
|
+#define _POPPLER_HAS_UNICODE_BOMLE(value) (value->hasUnicodeMarkerLE())
|
|
+#endif
|
|
|
|
#if POPPLER_CHECK_VERSION(22, 4, 0)
|
|
#define _POPPLER_FONTPTR_TO_GFX8(font_ptr) ((Gfx8BitFont *)font_ptr.get())
|
|
Index: inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-utils.cpp
|
|
===================================================================
|
|
--- inkscape-1.3.2_2023-11-25_091e20ef0f.orig/src/extension/internal/pdfinput/poppler-utils.cpp
|
|
+++ inkscape-1.3.2_2023-11-25_091e20ef0f/src/extension/internal/pdfinput/poppler-utils.cpp
|
|
@@ -12,6 +12,8 @@
|
|
|
|
#include "poppler-utils.h"
|
|
|
|
+#include <poppler/UTF.h>
|
|
+
|
|
#include "2geom/affine.h"
|
|
#include "GfxFont.h"
|
|
#include "GfxState.h"
|
|
@@ -563,10 +565,10 @@ std::string getDictString(Dict *dict, co
|
|
*/
|
|
std::string getString(const GooString *value)
|
|
{
|
|
- if (value->hasUnicodeMarker()) {
|
|
+ if (_POPPLER_HAS_UNICODE_BOM(value)) {
|
|
return g_convert(value->getCString () + 2, value->getLength () - 2,
|
|
"UTF-8", "UTF-16BE", NULL, NULL, NULL);
|
|
- } else if (value->hasUnicodeMarkerLE()) {
|
|
+ } else if (_POPPLER_HAS_UNICODE_BOMLE(value)) {
|
|
return g_convert(value->getCString () + 2, value->getLength () - 2,
|
|
"UTF-8", "UTF-16LE", NULL, NULL, NULL);
|
|
}
|