Questions tagged [ftgl]

A font rendering library for OpenGL

41 questions
9
votes
1 answer

Text rendering terribly slow

I'm using FTGL library to render text in my C++, OpenGL application, but I find it terribly slow, even though it is said to be fast and efficient library for this. Even for small amounts of text, performance drop is visible, but when I try to…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
8
votes
2 answers

MacOSX + Boost_Python + PyFTGL :- Symbol not found, expected in: flat namespace

I am trying to install PyFTGL on MacOSX Yosemite. The python version I am using is 2.7 from macports. I have installed boost from macports specifying +python27. To install PyFTGL I built from source and edited the setup.py file…
James Elder
  • 1,583
  • 3
  • 22
  • 34
7
votes
1 answer

How to install FTGL library on windows?

I want to use the haskell FTGL binding, which need the FTGL library. There seems no binary for windows and I can't find any useful info on how to compile it. What's the easiest way to make it work?
Eric Wong
  • 524
  • 9
  • 21
5
votes
1 answer

Ugly font after resizing, OpenGL

I'll start with an image: Above image presents text achieved in two different ways, both used the same type of font - Arial, bold, size 11. The one at the bottom was created in image editing program, and the one at the top in my OpenGL…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
4
votes
1 answer

How do I render a GL_ALPHA texture?

I'm trying to work with the FTGL font library, to create a texture-mapped font and render it to the screen. The library creates a texture in the GL_ALPHA format to hold the font glyphs, and then when you tell it to render a string, it goes through…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
4
votes
4 answers

FTGL texture fonts display only black boxes when using multiple canvases

I am using texture fonts in FTGL to render fonts into multiple canvases as labels for axis and such. My first plot comes out fine. However all subsequent canvases render my texture fonts as simply black squares. I've also noticed that some numbers…
foboi1122
  • 1,727
  • 4
  • 19
  • 36
3
votes
1 answer

Undefined reference to glew

while I am working on rendering fonts using ftgl in my opengl project I am encountering errors stating g++ -o mygame Sample_GL3_2D.cpp glad.c -lGL -lglfw -ldl -lftgl -lSOIL -I /usr/include/freetype2 -L/usr/local/lib…
3
votes
1 answer

how to draw font with bold and italic in freetype

I did print unicode text in my program using FTGL. I want to turn on italic and bold options. How can I do it? How can I know a font file has italic? Does the font file have option about italic or bold? Can I just check font name like…
n2v2rda2
  • 327
  • 2
  • 5
  • 15
3
votes
1 answer

Properly position y-axis of font in FTGL

Yesterday, I struggled about how to render FTGL font in a window whose origin is at top-left. Retaining this kind of orthographic settings makes it difficult for me to properly align FTGL font, esp. in y-axis void enable2D(int w, int h) { …
mr5
  • 3,438
  • 3
  • 40
  • 57
3
votes
1 answer

FTGL and MinGW - How in the third moon of Saturn are you meant to compile this thing?

Ok, I'm trying to get FTGL working on MinGW, and I am having trouble compiling the library. I google searched everywhere, tried many different things, the closest thing to getting it work correctly is this question, however, he is assuming you can…
Bingo
  • 3,785
  • 6
  • 23
  • 27
2
votes
2 answers

OpenGL: using FTGL and textures

When using FTGL texture fonts, everything works perfectly until I use another texture somewhere else in my program. Then the original texture of the font seems to be lost, and as a consequence, the characters are drawn as black dots. After playing…
seb
  • 2,136
  • 3
  • 20
  • 27
2
votes
2 answers

Cannot change font color with FTGL

How can I change the font color in FTGL?
MsrButterfly
  • 1,599
  • 2
  • 10
  • 17
2
votes
2 answers

glScalef for raster fonts, OpenGL

I have a simple question. I'm using FTGL library for drawing my PixmapFont in my game application. My question is - is it possible to use glScalef() to scale raster font, or not? From what I understand, if I have to use glRasterPos() instead of…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
2
votes
1 answer

Rendering only a part of text FTGL, OpenGL

I'm using FTGL library to render text in my C++ project. I can easily render text by using: CFontManager::Instance().renderWrappedText(font, lineLength, position, text); Unfortunately there is a situation in which this Button which displays text,…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
1
vote
3 answers

Compile with MinGW and install FTGL lib to render text in OpenGL

Context I'm making a game engine using SDL and OpenGL. I'm trying to find the best way to output text to the screen with fancy true type font and I came across FTGL. (If you have better/easier solution, feel free to share it.) Compiling FTGL It…
Emile Bergeron
  • 17,074
  • 5
  • 83
  • 129
1
2 3