Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fgas_fontutils.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
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 <stdint.h>
11
12#include "core/fxcrt/fx_codepage_forward.h"
13#include "core/fxcrt/widestring.h"
14
16 static constexpr uint16_t kNoBitField = 999;
17
18 uint16_t wStartUnicode;
19 uint16_t wEndUnicode;
20 uint16_t wBitField;
22};
23
24const FGAS_FONTUSB* FGAS_GetUnicodeBitField(wchar_t wUnicode);
25
27 uint32_t dwFontNameHash; // WideString hash.
28 const char* pPsName; // Raw, POD struct.
29 const char* pReplaceFont; // Raw, POD struct.
30 uint16_t dwStyles;
32};
33
34WideString FGAS_FontNameToEnglishName(const WideString& wsLocalName);
35const FGAS_FontInfo* FGAS_FontInfoByFontName(WideStringView wsFontName);
36
37#endif // XFA_FGAS_FONT_FGAS_FONTUTILS_H_
CFGAS_DefaultFontManager(const CFGAS_DefaultFontManager &)=delete
static RetainPtr< CFGAS_GEFont > GetDefaultFont(uint32_t dwFontStyles)
static RetainPtr< CFGAS_GEFont > GetFont(WideString wsFontName, uint32_t dwFontStyles)
CFGAS_DefaultFontManager & operator=(const CFGAS_DefaultFontManager &)=delete
RetainPtr< CFGAS_GEFont > LoadFont(const wchar_t *pszFontFamily, uint32_t dwFontStyles, FX_CodePage wCodePage)
static CFGAS_GEModule * Get()
CFGAS_FontMgr * GetFontMgr()
const wchar_t * c_str() const
Definition widestring.h:81
static WideString FromASCII(ByteStringView str)
WideString FGAS_FontNameToEnglishName(const WideString &wsLocalName)
const FGAS_FONTUSB * FGAS_GetUnicodeBitField(wchar_t wUnicode)
const FGAS_FontInfo * FGAS_FontInfoByFontName(WideStringView wsFontName)
FX_CodePage
Definition fx_codepage.h:18
#define FXFONT_ITALIC
Definition fx_font.h:33
bool FontStyleIsItalic(uint32_t style)
Definition fx_font.h:62
#define FXFONT_FORCE_BOLD
Definition fx_font.h:36
bool FontStyleIsForceBold(uint32_t style)
Definition fx_font.h:59
static constexpr uint16_t kNoBitField
uint16_t wEndUnicode
uint16_t wBitField
FX_CodePage wCodePage
uint16_t wStartUnicode
FX_CodePage wCodePage
const char * pPsName
const char * pReplaceFont
uint32_t dwFontNameHash
uint16_t dwStyles