|
|
Charset font and encoder/decoder handling.
This is needed, because Qt's font matching algorithm gives the font family a higher priority than the charset. For many applications this is not acceptable, since it can totally obscure the output, in languages which use non iso-8859-1 charsets.
|
[protected]
protected constructor. If you need the kcharsets object, use KGlobal::charsets() instead.
~ |
[virtual]
destructor
QTextCodec * |
[const]
provided for compitibility.
QTextCodec * |
[const]
tries to find a QTextCodec to convert the given encoding from and to Unicode. If no codec could be found the latin1 codec will be returned an ok will be set to false.
QFont::CharSet |
[const]
Returns: the charset that fits a given encoding best (that can display a file in the given encoding)
QChar |
[const]
converts an entity to a character. The string must contain only the entity without the trailing ';'.
Returns: QChar::null if the entity could not be decoded.
QChar |
[const]
Overloaded member function. Tries to find an entity in the QString str.
Parameters:
Returns: a decoded entity if one could be found, QChar::null otherwise
QString |
[const]
converts a QChar to an entity. The returned string does already contain the leading '&' and the trailing ';'.
QList<QFont::CharSet> |
lists all available charsets for a given family. if family is omitted, it will return all charsets available.
It is the resonsability of the caller to delete the items in the list.
QStringList |
as above, but returns the names of the charsets
QStringList |
Lists all available encodings as names.
QFont |
[const]
Returns: a QFont, which can print the character given, and is closest to the font given. if no mathing font could be found, the returned font will have the charset QFont::Any.
QStringList |
Returns: all families that have a font in the give charset
void |
[const]
sets the QFont f to the charset given in charset. Opposed to QFont's setCharset() function, this function will do it's best to find a font which can display the given charset. It might change the font's family for this purpose, but care is taken to find a family which is as close as possible to the font given.
void |
[const]
overloaded member function. Provided for convenience.
QString |
Returns: the name of the charset f is set to.
QString |
Returns: the name of the Charset c.
bool |
is a font with the given charset available?
bool |
overloaded member function. Provided for convenience.
QFont::CharSet |
Returns: the charset for the locale.
bool |
[const]
does the given font family have a unicode encoding?
bool |
[const]
does given font exist with a unicode encoding?
enum |
enum |
enum |
QString |
[const]
QFont::CharSet |
[const]
QFont::CharSet |
[const]