38#ifndef MWAW_FONT_CONVERTER
39# define MWAW_FONT_CONVERTER
74 int getId(std::string
const &name, std::string family=
"")
const;
76 std::string
getName(
int macId)
const;
78 void setCorrespondance(
int macId, std::string
const &name, std::string family=
"");
86 void getOdtInfo(
int macId, std::string &name,
int &deltaSize)
const;
90 int unicode(
int macId,
unsigned char c)
const;
98 int unicode(
int macId,
unsigned char c,
unsigned char const *(&str),
int len)
const;
101 mutable std::shared_ptr<MWAWFontConverterInternal::State>
m_manager;
the default font converter
Definition MWAWFontConverter.cxx:967
int unicode(int macId, unsigned char c) const
converts a character in unicode
Definition MWAWFontConverter.cxx:1344
void getOdtInfo(int macId, std::string &name, int &deltaSize) const
final font name and a delta which can be used to change the size if no name is found,...
Definition MWAWFontConverter.cxx:1339
std::string getName(int macId) const
returns empty string if unknown
Definition MWAWFontConverter.cxx:1334
MWAWFontConverter()
the constructor
Definition MWAWFontConverter.cxx:1316
~MWAWFontConverter()
the destructor
Definition MWAWFontConverter.cxx:1320
std::shared_ptr< MWAWFontConverterInternal::State > m_manager
the main manager
Definition MWAWFontConverter.hxx:101
Encoding
the character encoding type
Definition MWAWFontConverter.hxx:66
@ E_SJIS
Definition MWAWFontConverter.hxx:66
@ E_DEFAULT
Definition MWAWFontConverter.hxx:66
void setCorrespondance(int macId, std::string const &name, std::string family="")
fixes the name corresponding to an id
Definition MWAWFontConverter.cxx:1324
int getId(std::string const &name, std::string family="") const
returns an unique id > 255, if unknown
Definition MWAWFontConverter.cxx:1329
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition libmwaw_internal.hxx:551
Internal namespace used to store the data used by MWAWFontConverterInternal.
Definition MWAWFontConverter.cxx:44