Skip to main content

Questions tagged [fonts]

A collection of text characters according to the size and style of a particular typeface. Often used as shorthand when referring to said typeface.

0 votes
2 answers
1k views

Resize font when screen resizes desktop Libgdx

I create my font using the following code: ...
0 votes
0 answers
37 views

Glyphs are not being drawn [opengl + freetype]

I've followed this source from learnopengl.com for text rendering. It seems fairly simple, and only required this much code: ...
7 votes
1 answer
4k views

Drawing fonts with LWJGL3 with OpenGL

I'm very sorry if this question has already been answered, but since I've been struggling with this for many days I thought I'd give it a shot here. My goal is to somehow render some text on the ...
3 votes
1 answer
2k views

How to make a bitmap font having only a PNG file?

Is there a way to "convert" an existing PNG file with the characters' images into a bitmap font? Basically, I want to create a FNT file using an image like this... (source: opengameart.org) ...
8 votes
2 answers
796 views

Android libGDX FreeTypeFontGenerator exception

I am working on a libGDX project for Android. Since I added the following code, running the game on my Android phone produces an exception: ...
8 votes
3 answers
7k views

Font outline in OpenGL, FTGL

I'm using FTGL library to render fonts in my game, but I have completely no idea how to create an outline around text. Achieving a shadow could be easy, because I can simply do it like this: (pseudo ...
5 votes
1 answer
736 views

Web build not respecting Monospace SystemFont for Godot Label

I want a label to use a monospace SystemFont but the Web build is not respecting this setting. Here's steps to reproduce my situation: Create a new Godot 4.0.1 ...
2 votes
2 answers
865 views

How do you deal with transparent fonts that you want to be white?

I am a complete beginner, but I thought I would try to learn how to create a basic game during quarantine. So, I apologize if this question is trivial. However, I stumbled into a problem with fonts. I'...
5 votes
1 answer
567 views

UIView with IrrlichtScene [closed]

i have a UIViewController in a Storyboard and want to draw a IrrlichtScene in this View Controller. My Code: WWSViewController.h ...
1 vote
1 answer
398 views

How to add a fallback font to an existing Unity game?

I am trying to make a mod that will fix a game that failed to ship all used fonts with it. For example, this code point displays in Windows but not under Wine: ✔ U+2713 (The reason seems to be a ...
1 vote
1 answer
1k views

How can I render a font in C with OpenGL? [closed]

What I tried: I was testing some things in order to render text with stb_truetype.h and OpenGL in C. I took as a reference the example that appears here. Basically, this example, loads a .ttf file and ...
2 votes
1 answer
662 views

Getting a list of all supported characters in a Font

I am attempting to create my own font fallback system for multilanguage support using UI Toolkit in Unity (Label class). This UI system does not intrinsically support fallback fonts. I have some ...
5 votes
2 answers
1k views

How does condition 5 of the Open Font License apply to using a font in my game/engine?

For my game-engine I have created an debug-console I use for more complex operations and tests, logging, etc. When looking for a good & clean font I considered using Google Fonts. Many if not all ...
0 votes
1 answer
80 views

Getting text dimensions with TextGenerator.GetPreferredHeight/Width not working

I am using Unity 2021.3.3f1 and trying to make a pop up with a sprite as a background, where the size of this sprite adjusts to the size necessary to fit the text. From what I understand, ...
0 votes
1 answer
355 views

How to check the font on a Text Mesh Pro component

I have a GameObject with a Text Mesh Pro component. I want to check if the Font applied to the Text Mesh Pro component is a particular font (let's say it's Comic Sans) I can get the font name by first ...

15 30 50 per page
1
2 3 4 5
11