Subversion Repositories Scribus

Rev

Rev 5979 | Rev 6213 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5979 avox 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
 
8
#ifndef SCFONTMETRICS_H
9
#define SCFONTMETRICS_H
10
 
11
#include <utility>
12
#include <qglobal.h>
13
#include <qstring.h>
14
#include <qcolor.h>
15
 
16
#include <ft2build.h>
17
#include FT_FREETYPE_H
18
#include FT_OUTLINE_H
19
#include FT_GLYPH_H
20
 
21
#include "scribusapi.h"
22
#include "fpoint.h"
23
#include "fpointarray.h"
24
 
25
class ScFace;
26
class Scribusdoc;
27
 
28
int SCRIBUS_API setBestEncoding(FT_Face face);
29
FPointArray SCRIBUS_API traceChar(FT_Face face, uint chr, int chs, double *x, double *y, bool *err);
30
FPointArray SCRIBUS_API traceGlyph(FT_Face face, uint chr, int chs, double *x, double *y, bool *err);
31
QPixmap SCRIBUS_API FontSample(const ScFace& fnt, int s, QString ts, QColor back, bool force = false);
32
//QPixmap SCRIBUS_API fontSamples(const ScFace& fnt, int s, QString ts, QColor back);
6163 avox 33
bool SCRIBUS_API GlyNames(FT_Face face, QMap<uint, std::pair<QChar, QString> >& GList);
5979 avox 34
//bool SCRIBUS_API GlyIndex(ScFace * fnt, QMap<uint, PDFlib::GlNamInd> *GListInd);
35
 
36
#endif