1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FGAS_FONT_FGAS_FONTUTILS_H_ 8 #define XFA_FGAS_FONT_FGAS_FONTUTILS_H_ 9 10 #include "core/fxcrt/widestring.h" 11 12 struct FGAS_FONTUSB { 13 uint16_t wStartUnicode; 14 uint16_t wEndUnicode; 15 uint16_t wBitField; 16 uint16_t wCodePage; 17 }; 18 19 const FGAS_FONTUSB* FGAS_GetUnicodeBitField(wchar_t wUnicode); 20 21 struct FGAS_FontInfo { 22 uint32_t dwFontNameHash; 23 const wchar_t* pPsName; 24 const wchar_t* pReplaceFont; 25 uint16_t dwStyles; 26 uint16_t wCodePage; 27 }; 28 29 WideString FGAS_FontNameToEnglishName(const WideStringView& wsLocalName); 30 31 const FGAS_FontInfo* FGAS_FontInfoByFontName(const WideStringView& wsFontName); 32 33 #endif // XFA_FGAS_FONT_FGAS_FONTUTILS_H_ 34