7#include "xfa/fgas/font/cfgas_defaultfontmanager.h"
9#include "core/fxcrt/compiler_specific.h"
10#include "core/fxcrt/fx_codepage.h"
11#include "core/fxcrt/numerics/safe_conversions.h"
12#include "core/fxge/fx_font.h"
13#include "xfa/fgas/font/cfgas_fontmgr.h"
14#include "xfa/fgas/font/cfgas_gefont.h"
15#include "xfa/fgas/font/cfgas_gemodule.h"
16#include "xfa/fgas/font/fgas_fontutils.h"
21 uint32_t dwFontStyles) {
23 RetainPtr<CFGAS_GEFont> pFont = pFontMgr->LoadFont(
24 wsFontName.c_str(), dwFontStyles, FX_CodePage::kFailure);
29 FGAS_FontInfoByFontName(wsFontName.AsStringView());
42 while (!replace_view.IsEmpty()) {
44 auto found = replace_view.Find(
',');
45 if (found.has_value()) {
46 segment = replace_view.First(found.value());
47 replace_view = replace_view.Substr(found.value() + 1);
49 segment = replace_view;
50 replace_view = ByteStringView();
63 uint32_t dwFontStyles) {
66 pFontMgr->LoadFont(L"Arial Narrow", dwFontStyles, FX_CodePage::kFailure);
static RetainPtr< CFGAS_GEFont > GetDefaultFont(uint32_t dwFontStyles)
static RetainPtr< CFGAS_GEFont > GetFont(WideString wsFontName, uint32_t dwFontStyles)
RetainPtr< CFGAS_GEFont > LoadFont(const wchar_t *pszFontFamily, uint32_t dwFontStyles, FX_CodePage wCodePage)
static CFGAS_GEModule * Get()
CFGAS_FontMgr * GetFontMgr()
static WideString FromASCII(ByteStringView str)
bool FontStyleIsItalic(uint32_t style)
#define FXFONT_FORCE_BOLD
bool FontStyleIsForceBold(uint32_t style)
fxcrt::ByteStringView ByteStringView
const char * pReplaceFont
fxcrt::WideString WideString