Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: public/fpdf_sysfontinfo.h

Issue 1253603002: Fix FX_BOOL type mismatches. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Public API Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/javascript/PublicMethods.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef PUBLIC_FPDF_SYSFONTINFO_H_ 7 #ifndef PUBLIC_FPDF_SYSFONTINFO_H_
8 #define PUBLIC_FPDF_SYSFONTINFO_H_ 8 #define PUBLIC_FPDF_SYSFONTINFO_H_
9 9
10 #include "fpdfview.h" 10 #include "fpdfview.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 * If the system supports native font mapper (like Windows), implem entation can implement this method to get a font handle. 87 * If the system supports native font mapper (like Windows), implem entation can implement this method to get a font handle.
88 * Otherwise, Foxit SDK will do the mapping and then call GetFont m ethod. 88 * Otherwise, Foxit SDK will do the mapping and then call GetFont m ethod.
89 * Only TrueType/OpenType and Type1 fonts are accepted by Foxit SDK . 89 * Only TrueType/OpenType and Type1 fonts are accepted by Foxit SDK .
90 * Parameters: 90 * Parameters:
91 * pThis - Pointer to the interface structure itself 91 * pThis - Pointer to the interface structure itself
92 * weight - Weight of the requested font. 400 is normal and 700 is bold. 92 * weight - Weight of the requested font. 400 is normal and 700 is bold.
93 * bItalic - Italic option of the requested font, TRUE or FAL SE. 93 * bItalic - Italic option of the requested font, TRUE or FAL SE.
94 * charset - Character set identifier for the requested font. See above defined constants. 94 * charset - Character set identifier for the requested font. See above defined constants.
95 * pitch_family - A combination of flags. See above defined consta nts. 95 * pitch_family - A combination of flags. See above defined consta nts.
96 * face - Typeface name. Currently use system local encodi ng only. 96 * face - Typeface name. Currently use system local encodi ng only.
97 * bExact - Pointer to an boolean value receiving the indica tor whether mapper found the exact match. 97 * bExact - Pointer to a boolean value receiving the indicat or whether mapper found the exact match.
98 * If mapper is not sure whether it's exact match, ignore this paramter. 98 * If mapper is not sure whether it's exact match, ignore this paramter.
99 * Return Value: 99 * Return Value:
100 * An opaque pointer for font handle, or NULL if system mapping is not supported. 100 * An opaque pointer for font handle, or NULL if system mapping is not supported.
101 **/ 101 **/
102 void* (*MapFont)(struct _FPDF_SYSFONTINFO* pThis, int weight, int bItalic, i nt charset, int pitch_family, 102 void* (*MapFont)(struct _FPDF_SYSFONTINFO* pThis, int weight, FPDF_BOOL bIta lic, int charset, int pitch_family,
103 const char* face, int* bExact); 103 const char* face, FPDF_BOOL* bExact);
104 104
105 /** 105 /**
106 * Method: GetFont 106 * Method: GetFont
107 * Get a handle to a particular font by its internal ID 107 * Get a handle to a particular font by its internal ID
108 * Interface Version: 108 * Interface Version:
109 * 1 109 * 1
110 * Implementation Required: 110 * Implementation Required:
111 * Yes only if MapFont method is not implemented. 111 * Yes only if MapFont method is not implemented.
112 * Comments: 112 * Comments:
113 * If the system mapping not supported, Foxit SDK will do the font mapping and use this method to get a font handle. 113 * If the system mapping not supported, Foxit SDK will do the font mapping and use this method to get a font handle.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 * Or NULL if the platform doesn't have a default interface. 253 * Or NULL if the platform doesn't have a default interface.
254 * Application should call FPDF_FreeMemory to free the returned pointer . 254 * Application should call FPDF_FreeMemory to free the returned pointer .
255 **/ 255 **/
256 DLLEXPORT FPDF_SYSFONTINFO* STDCALL FPDF_GetDefaultSystemFontInfo(); 256 DLLEXPORT FPDF_SYSFONTINFO* STDCALL FPDF_GetDefaultSystemFontInfo();
257 257
258 #ifdef __cplusplus 258 #ifdef __cplusplus
259 } 259 }
260 #endif 260 #endif
261 261
262 #endif // PUBLIC_FPDF_SYSFONTINFO_H_ 262 #endif // PUBLIC_FPDF_SYSFONTINFO_H_
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/PublicMethods.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698