SFont.cpp   StelFont.cpp 
skipping to change at line 20 skipping to change at line 20
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#include "SFont.hpp" #include "StelFont.hpp"
#include "GLee.h" #include "GLee.h"
#include "fixx11h.h" #include "fixx11h.h"
#include <QFile> #include <QFile>
#include <QChar> #include <QChar>
#include <QString> #include <QString>
SFont::SFont(float sizeI, const QString& ttfFileName) StelFont::StelFont(float sizeI, const QString& ttfFileName)
: typeFace(QFile::encodeName(ttfFileName).constData(), (size_t)(size I), 72) : typeFace(QFile::encodeName(ttfFileName).constData(), (size_t)(size I), 72)
{ {
} }
void SFont::printCharOutlined(const QChar c) const void StelFont::printCharOutlined(const QChar c) const
{ {
GLfloat current_color[4]; GLfloat current_color[4];
glGetFloatv(GL_CURRENT_COLOR, current_color); glGetFloatv(GL_CURRENT_COLOR, current_color);
glColor3f(0,0,0); glColor3f(0,0,0);
glPushMatrix(); glPushMatrix();
glTranslatef(1,1,0); glTranslatef(1,1,0);
typeFace.renderGlyphs(c, false); typeFace.renderGlyphs(c);
glPopMatrix(); glPopMatrix();
glPushMatrix(); glPushMatrix();
glTranslatef(-1,-1,0); glTranslatef(-1,-1,0);
typeFace.renderGlyphs(c, false); typeFace.renderGlyphs(c);
glPopMatrix(); glPopMatrix();
glPushMatrix(); glPushMatrix();
glTranslatef(1,-1,0); glTranslatef(1,-1,0);
typeFace.renderGlyphs(c, false); typeFace.renderGlyphs(c);
glPopMatrix(); glPopMatrix();
glPushMatrix(); glPushMatrix();
glTranslatef(-1,1,0); glTranslatef(-1,1,0);
typeFace.renderGlyphs(c, false); typeFace.renderGlyphs(c);
glPopMatrix(); glPopMatrix();
glColor4fv(current_color); glColor4fv(current_color);
typeFace.renderGlyphs(c,false); typeFace.renderGlyphs(c);
} }
 End of changes. 8 change blocks. 
8 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/