8 #include <ff7tkformats_export.h>
10 inline quint8
LEFT_PADD(quint8 w) {
return (w >> 5);}
29 bool open(
const QString &path);
30 bool open(
const QByteArray &data);
31 bool save(QByteArray &data)
const;
33 bool isModified()
const;
35 void setModified(
bool modified);
36 int charCount()
const;
37 int tableCount()
const;
38 static int tableSize(quint8 table);
39 const QImage &image(FontColor color);
40 QImage letter(quint8 tableId, quint8 charId, FontColor color);
41 bool setLetter(quint8 tableId, quint8 charId,
const QImage &image);
42 uint letterPixelIndex(quint8 tableId, quint8 charId,
const QPoint &pos)
const;
43 bool setLetterPixelIndex(quint8 tableId, quint8 charId,
const QPoint &pos, uint pixelIndex);
44 quint8 charWidth(quint8 table, quint8
id)
const;
45 quint8 charLeftPadding(quint8 table, quint8
id)
const;
46 void setCharWidth(quint8 table, quint8
id, quint8 width);
47 void setCharLeftPadding(quint8 table, quint8
id, quint8 padding);
49 static void saveSection(
const QByteArray §ion, QByteArray &data, quint16 type);
50 inline const TimFile &constFont(quint8 tableId)
const {
51 if (isJp() && tableId >= 4) {
56 inline TimFile &font(quint8 tableId) {
57 if (isJp() && tableId >= 4) {
62 int palette(FontColor color, quint8 table)
const;
63 QPoint letterPos(quint8 tableId, quint8 charId)
const;
64 inline QSize letterSize()
const {
67 QRect letterRect(quint8 tableId, quint8 charId)
const;
68 bool openFont(
const QByteArray &data);
69 bool openFont2(
const QByteArray &data);
70 bool openFontSize(
const QByteArray &data);
71 static int absoluteId(quint8 table, quint8
id);
72 quint8 charInfo(quint8 table, quint8
id)
const;
73 void setCharInfo(quint8 table, quint8
id, quint8 info);
75 QList<quint8> _charWidth;