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
cfgas_defaultfontmanager.h
Go to the documentation of this file.
1// Copyright 2017 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_CFGAS_DEFAULTFONTMANAGER_H_
8#define XFA_FGAS_FONT_CFGAS_DEFAULTFONTMANAGER_H_
9
10#include "core/fxcrt/retain_ptr.h"
11#include "core/fxcrt/widestring.h"
12
13class CFGAS_GEFont;
14
16 public:
17 static RetainPtr<CFGAS_GEFont> GetFont(WideString wsFontName,
18 uint32_t dwFontStyles);
19 static RetainPtr<CFGAS_GEFont> GetDefaultFont(uint32_t dwFontStyles);
20
24};
25
26#endif // XFA_FGAS_FONT_CFGAS_DEFAULTFONTMANAGER_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)
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
const char * pReplaceFont