LibreOffice Module hwpfilter (master) 1
|
The HWPFont class has the font list for the document when it's saved. More...
#include <hfont.h>
Public Member Functions | |
HWPFont (void) | |
~HWPFont (void) | |
void | AddFont (int lang, const char *font) |
Adds a font into font list of a language. More... | |
const char * | GetFontName (int lang, int id) |
void | Read (HWPFile &hwpf) |
Private Attributes | |
int | nFonts [NLanguage] |
System font count for each language NLanguage is 7 in common case. More... | |
std::unique_ptr< char[]> | fontnames [NLanguage] |
list of the font family name More... | |
The HWPFont class has the font list for the document when it's saved.
Font information
HWPFont::HWPFont | ( | void | ) |
void HWPFont::AddFont | ( | int | lang, |
const char * | font | ||
) |
lang | Language index |
id | Index of font |
Definition at line 52 of file hfont.cxx.
References FONTNAMELEN, fontnames, nFonts, and NLanguage.
Referenced by HwpReader::parseCharShape().
void HWPFont::Read | ( | HWPFile & | hwpf | ) |
Definition at line 63 of file hfont.cxx.
References AddFont(), buffer, FONTNAMELEN, fontnames, get(), HWP_InvalidFileFormat, MAXFONTS, NLanguage, HWPFile::Read2b(), HWPFile::ReadBlock(), and HWPFile::SetState().
Referenced by HWPFile::FontRead().
|
private |
System font count for each language NLanguage is 7 in common case.
Definition at line 42 of file hfont.h.
Referenced by AddFont(), GetFontName(), and HWPFont().