Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scfontmetrics.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 
00008 #ifndef SCFONTMETRICS_H
00009 #define SCFONTMETRICS_H
00010 
00011 #include <utility>
00012 #include <qglobal.h>
00013 #include <qstring.h>
00014 #include <qcolor.h>
00015 
00016 #include <ft2build.h>
00017 #include FT_FREETYPE_H
00018 #include FT_OUTLINE_H
00019 #include FT_GLYPH_H
00020 
00021 #include "scribusapi.h"
00022 #include "fpoint.h"
00023 #include "fpointarray.h"
00024 
00025 class ScFace;
00026 class Scribusdoc;
00027 
00028 int SCRIBUS_API setBestEncoding(FT_Face face);
00029 FPointArray SCRIBUS_API traceChar(FT_Face face, uint chr, int chs, double *x, double *y, bool *err);
00030 FPointArray SCRIBUS_API traceGlyph(FT_Face face, uint chr, int chs, double *x, double *y, bool *err);
00031 QPixmap SCRIBUS_API FontSample(const ScFace& fnt, int s, QString ts, QColor back, bool force = false);
00032 //QPixmap SCRIBUS_API fontSamples(const ScFace& fnt, int s, QString ts, QColor back);
00033 bool SCRIBUS_API GlyNames(FT_Face face, QMap<uint, std::pair<QChar, QString> >& GList);
00034 
00035 #endif