mirror of
https://github.com/YACReader/yacreader
synced 2026-02-23 07:23:00 -05:00
Update pdfium binaries for Windows builds
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt5) (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / macOS (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Windows x86 (Qt5) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt5) (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / macOS (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Windows x86 (Qt5) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
It fixes rendering problems with newer PDFs.
This commit is contained in:
@ -46,14 +46,17 @@ extern "C" {
|
||||
// Interface: FPDF_SYSFONTINFO
|
||||
// Interface for getting system font information and font mapping
|
||||
typedef struct _FPDF_SYSFONTINFO {
|
||||
// Version number of the interface. Currently must be 1.
|
||||
// Version number of the interface. Currently must be 1 or 2.
|
||||
// Version 1: Traditional behavior - calls EnumFonts during initialization.
|
||||
// Version 2: Per-request behavior - skips EnumFonts, relies on MapFont.
|
||||
// Experimental: Subject to change based on feedback.
|
||||
int version;
|
||||
|
||||
// Method: Release
|
||||
// Give implementation a chance to release any data after the
|
||||
// interface is no longer used.
|
||||
// Interface Version:
|
||||
// 1
|
||||
// 1 and 2
|
||||
// Implementation Required:
|
||||
// No
|
||||
// Parameters:
|
||||
@ -80,13 +83,15 @@ typedef struct _FPDF_SYSFONTINFO {
|
||||
// Implementations should call FPDF_AddInstalledFont() function for
|
||||
// each font found. Only TrueType/OpenType and Type1 fonts are
|
||||
// accepted by PDFium.
|
||||
// NOTE: This method will not be called when version is set to 2.
|
||||
// Version 2 relies entirely on MapFont() for per-request matching.
|
||||
void (*EnumFonts)(struct _FPDF_SYSFONTINFO* pThis, void* pMapper);
|
||||
|
||||
// Method: MapFont
|
||||
// Use the system font mapper to get a font handle from requested
|
||||
// parameters.
|
||||
// Interface Version:
|
||||
// 1
|
||||
// 1 and 2
|
||||
// Implementation Required:
|
||||
// Required if GetFont method is not implemented.
|
||||
// Parameters:
|
||||
@ -122,7 +127,7 @@ typedef struct _FPDF_SYSFONTINFO {
|
||||
// Method: GetFont
|
||||
// Get a handle to a particular font by its internal ID
|
||||
// Interface Version:
|
||||
// 1
|
||||
// 1 and 2
|
||||
// Implementation Required:
|
||||
// Required if MapFont method is not implemented.
|
||||
// Return Value:
|
||||
@ -138,7 +143,7 @@ typedef struct _FPDF_SYSFONTINFO {
|
||||
// Method: GetFontData
|
||||
// Get font data from a font
|
||||
// Interface Version:
|
||||
// 1
|
||||
// 1 and 2
|
||||
// Implementation Required:
|
||||
// Yes
|
||||
// Parameters:
|
||||
@ -164,7 +169,7 @@ typedef struct _FPDF_SYSFONTINFO {
|
||||
// Method: GetFaceName
|
||||
// Get face name from a font handle
|
||||
// Interface Version:
|
||||
// 1
|
||||
// 1 and 2
|
||||
// Implementation Required:
|
||||
// No
|
||||
// Parameters:
|
||||
@ -184,7 +189,7 @@ typedef struct _FPDF_SYSFONTINFO {
|
||||
// Method: GetFontCharset
|
||||
// Get character set information for a font handle
|
||||
// Interface Version:
|
||||
// 1
|
||||
// 1 and 2
|
||||
// Implementation Required:
|
||||
// No
|
||||
// Parameters:
|
||||
@ -197,7 +202,7 @@ typedef struct _FPDF_SYSFONTINFO {
|
||||
// Method: DeleteFont
|
||||
// Delete a font handle
|
||||
// Interface Version:
|
||||
// 1
|
||||
// 1 and 2
|
||||
// Implementation Required:
|
||||
// Yes
|
||||
// Parameters:
|
||||
@ -270,7 +275,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_AddInstalledFont(void* mapper,
|
||||
// Function: FPDF_SetSystemFontInfo
|
||||
// Set the system font info interface into PDFium
|
||||
// Parameters:
|
||||
// pFontInfo - Pointer to a FPDF_SYSFONTINFO structure
|
||||
// font_info - Pointer to a FPDF_SYSFONTINFO structure
|
||||
// Return Value:
|
||||
// None
|
||||
// Comments:
|
||||
@ -281,7 +286,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_AddInstalledFont(void* mapper,
|
||||
// Call this with NULL to tell PDFium to stop using a previously set
|
||||
// |FPDF_SYSFONTINFO|.
|
||||
FPDF_EXPORT void FPDF_CALLCONV
|
||||
FPDF_SetSystemFontInfo(FPDF_SYSFONTINFO* pFontInfo);
|
||||
FPDF_SetSystemFontInfo(FPDF_SYSFONTINFO* font_info);
|
||||
|
||||
// Function: FPDF_GetDefaultSystemFontInfo
|
||||
// Get default system font info interface for current platform
|
||||
@ -301,14 +306,14 @@ FPDF_EXPORT FPDF_SYSFONTINFO* FPDF_CALLCONV FPDF_GetDefaultSystemFontInfo();
|
||||
// Function: FPDF_FreeDefaultSystemFontInfo
|
||||
// Free a default system font info interface
|
||||
// Parameters:
|
||||
// pFontInfo - Pointer to a FPDF_SYSFONTINFO structure
|
||||
// font_info - Pointer to a FPDF_SYSFONTINFO structure
|
||||
// Return Value:
|
||||
// None
|
||||
// Comments:
|
||||
// This function should be called on the output from
|
||||
// FPDF_GetDefaultSystemFontInfo() once it is no longer needed.
|
||||
FPDF_EXPORT void FPDF_CALLCONV
|
||||
FPDF_FreeDefaultSystemFontInfo(FPDF_SYSFONTINFO* pFontInfo);
|
||||
FPDF_FreeDefaultSystemFontInfo(FPDF_SYSFONTINFO* font_info);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user