Questions tagged [ftgl]

A font rendering library for OpenGL

41 questions
0
votes
0 answers

OpenGL renders rectangle instead of text in case of using GLSL

I use my own QGraphicsItem-based class for drawing in QGraphicsScene. I also use FTGL for text rendering. Everything works fine until I start using shaders. My frame update logic is following: in MyGraphicsItem::paint I first update frame with…
user2123079
  • 656
  • 8
  • 29
0
votes
1 answer

FTGL texture fonts display boxes in GL_XOR mode

I would like to use FTGL texture fonts (FTTextureFont) to render fonts in XOR mode. The issue is that all characters are rendered as boxes (who's color is XOR-ed with the background). The calls to render the font are surrounded…
Vladislav
  • 1
  • 1
0
votes
1 answer

Issue with compound character font rendering in openGL using FTGL

In my application, FTGL renders unicode characters of true type fonts well except compound characters. Compound character is a combination of unicode consonant and vowel sounds. For example, in an indic language Tamil, the following string…
0
votes
1 answer

How to change color in RGB format in FTGL OpenGL?

How to change color in RGB format in FTGL OpenGL? FTGLPixmapFont font("arial.ttf"); FTPoint coord(100, 100, 0); font.FaceSize(20); font.Render("abc", -1 , coord); Standart color change does not work. glColor4f(1, 0, 0, 1);
gotostereo
  • 37
  • 1
  • 7
0
votes
0 answers

How do I flip upside down fonts in FTGL

I just use FTGL to use it in my app. I want to use the version FTBufferFont to render font but it renders in the wrong way. The font(texture?buffer?) is flipped in the wrong axis. I want to use this kind of orthographic settings: void enable2D(int…
mr5
  • 3,438
  • 3
  • 40
  • 57
0
votes
0 answers

ftgl text extrude overlapping on angles

Whenever I used FTExtrudeFont and add depth to it, whenever light is added and the angle is changed as seen below (the sides goes over the side thats supposed to be covering it). I simply added depth to this using the FTExtrudeFont and rendered it.…
ardowz
  • 47
  • 8
0
votes
2 answers

How to use the FTGL C API from C++?

How do I use FTGL's C API from C++ code in Visual Studio 2010? FTGL uses #ifdef __cplusplus checks to export C and C++ APIs from the same header files. I tried this: #ifdef __cplusplus #undef __cplusplus #include #define…
genpfault
  • 51,148
  • 11
  • 85
  • 139
0
votes
1 answer

Additional Include Directories Difficulties

I'm trying to include the FTGL library into my graphics project, but I keep getting c1083 error whenever I try to include the main header file: #include I have added the path $(Project1)include\FTGL to "Additional Include…
SirJames
  • 49
  • 4
0
votes
1 answer

Why does setting glRasterPos make my ftgl text disappear?

I'm struggling with the FTGL library for fonts in opengl. For example, I still haven't figured out how to put the text somewhere on the screen other than the bottom left. I'm currently using a pixmap font, and I started experimenting with…
jmilloy
  • 7,875
  • 11
  • 53
  • 86
-1
votes
1 answer

Error while running in different Operating System

I get the following errors. I could not solve it by myself. The error message: interface.cpp:191:10: error: request for member 'FaceSize' in 'interface::font', which is of non-class type 'void*' font.FaceSize(fontSize); …
Kid
  • 169
  • 1
  • 19
-2
votes
2 answers

Looking for example using FTGL and Qt (OpenGL)

i need to do simple application that render 3d fonts to image. the recommended lib is FTGL , how can i combine it with 3dQt?
user63898
  • 29,839
  • 85
  • 272
  • 514
1 2
3