Questions tagged [ttf]

The tag has no usage guidance.

0
votes
0answers
22 views

SDL TTF need help using a font

Steps to reproduce: Have sdl2 installed Download https://www.libsdl.org/projects/SDL_ttf/ and build the showfont program Test that it works with a "normal" TTF like this $ ./showfont /usr/X11R6/lib/...
1
vote
1answer
18 views

How to make texture for text displaying using SDL ttf with good performance?

In my game, there are many units and for each units there's an information widget attached next to them. I use SDL as the game rendering engine. I currently want to display their ID for debugging ...
0
votes
2answers
70 views

SDL_TTF Manual Line Ending

With SDL TTF I've already gotten automatic line wrapping down using the built in "wrapped" function. However, now I want to do what I guess you could call manual line wrapping. Basically, at certain ...
2
votes
1answer
78 views

Why am I hitting a small character limit when rendering with SDL_TTF?

I'm making a text based game using SDL2 and SDL_TTF. I just started working with TTF, and I've noticed there is some kind of character limit regarding how much text you can render at a time! I can ...
-2
votes
1answer
122 views

Problem using SDL_TTF

I'm trying to create a 2D game, and I'm trying to use a layered drawing model. First I draw the background, then the world, then the constructs (buildings etc.), then the objects (NPC's etc.) and ...
0
votes
1answer
80 views

Can't figure out how to create texture from a font-surface

I can't seem to be able to render my font, it crashes and I can't figure out why. It seems to load the font correctly, but the parts relating to surface crashes. Why does my texture crash? Here is ...
0
votes
1answer
654 views

SDL TTF render variable

This is the way I render the score in my main game , and I made this new project to understand how to use it... It works , the score is updated and it display on the screen but the problem is memory......
0
votes
1answer
699 views

libgdx - Trying to load ttf font using asset manager

I tried to load a ttf font using an AssetManager like this: ...
4
votes
2answers
1k views

How to use SDL_TTF's outlines

This might be a basic question but googling isn't turning out anything useful: How are we supposed to use TTF_SetFontOutline ? I know we're able to create an outline (and it looks alright) but since ...
0
votes
2answers
353 views

Inverting a Font? [closed]

How can I invert a font like so: See here: This is my own .ttf font, I can edit it. The image that I posted was inverted manually by me. I am searching for a way ...
8
votes
5answers
1k views

Why can't I read .ttf file when running Android configuration?

When running or debugging my game on Android device, I get this error in the logcat: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: data/fonts/myFont.ttf (Internal) Which is ...
0
votes
1answer
182 views

TTF fonts are being converted to image in CPU or GPU?

Once I use a TTF font, when they are being converted to images to be rendered? Does CPU or GPU do the conversion? How heavy is that operation?