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.

Filter by
Sorted by
Tagged with
3
votes
1answer
4k views

How can I use ImGui to render simple text instead of using stb_truetype directly?

Since ImGui builds on top of stb_truetype for its font rendering, I thought it could be nicer to use its already built font-processing capabilities (...
1
vote
1answer
428 views

How can I render a font in C with OpenGL?

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 ...
0
votes
2answers
851 views
6
votes
1answer
3k 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 ...
6
votes
2answers
713 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: ...
0
votes
1answer
114 views

Scale screen space quads (used in font rendering)

I have quads positioned in <0, 1> x <0, 1> coordinates. I use this system for font rendering. In vertex shader I have: ...
2
votes
2answers
289 views

Is attribution sufficient for a CC BY-SA 3.0-licenced font in a video game?

I'm creating a video game I intend to sell on computers, and I want to use a font that is under the license "Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)". Do I have to sell my game ...
5
votes
1answer
557 views

UIView with IrrlichtScene

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

text - part of the sprite or dynamically generated

I am trying to reproduce the same stamping tool as the one we found in the video game "Papers, Please". In my case I want my users to be able to modify the text they are going to stamp. I ...
1
vote
1answer
892 views

How do you create a .XNB Font file for use with CocosSharp?

I know the .XNB file format is an XNA thing and that CocosSharp inherits this from its MonoGame roots. However there doesn't seem to be any information on how to create your own .XNB fonts to use with ...
1
vote
2answers
3k views

Text contains characters that cannot be resolved by this SpriteFont

I'm trying to draw currency symbols in an Arial Spritefont. According to this site, the font contains these symbols. I've included the Unicode character region for these symbols in the Content ...
6
votes
1answer
909 views

Font library for XNA [closed]

Is there a free type library kind of implementation available for XNA? I wish to use it on WP7, so it should be a managed code. I know can alternatively use spritefont, but I wish to know if other ...
4
votes
2answers
6k views

How do you create fnt (angelcode format) files from existing bitmaps?

I often gets the same problem: Someones creates a nice bitmap font for me in form of a sheet nicely formated into a png, like this: ...and i need to create the angelcode .fnt atlas for using it (into ...
0
votes
1answer
20 views

2-Color Fonts in Unity? (so maybe called 3-Color including transparent alpha?)

I have been trying to make my game title screen look better. I realised it was because all my fonts have just one colour. I read some very old threads about a Editor Scripts to extract the font to png ...
1
vote
3answers
827 views

How do I enlarge a SpriteFont without it becoming blurry?

How do I make spritefonts not blurry when I make them bigger? I have searched Google and haven't found any useful answer.
2
votes
1answer
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) ...
0
votes
0answers
10 views

Application stops working when I add two fonts

I created a game that has two fonts. Being precise, the two fonts are PRESS_START_2P with the difference only in size. One of the fonts serves to write the title and the other for all other things. ...
6
votes
2answers
728 views

Showing Unicode in XNA on Windows Phone 7

I am creating an application which downloads names from server. These names can be any unicode language text which I need to render in XNA on WP7. The biggest problem I see here is WP7 xna system can'...
6
votes
0answers
139 views

How to draw text with characters rendered in reverse order in a Godot game?

I need to have some text showing up in my Godot game in a way that each character overlaps the character directly to its right, like so: ...
1
vote
2answers
47 views

How to have a tilted FNT font on Godot?

Since FNT is a bitmap font I was thinking perhaps making the padding negative to the right and left side of the characters and rasterizing each glyph already skewed by an angle could make the font ...
1
vote
0answers
388 views

How do I convert a PNG into a pixel art font for use in Godot?

I'm an artist. I have several pixel art fonts prepared like so. My platform, Godot, accepts only TrueType and FNT file formats. My images are of raster pixels so obviously a conversion needs to take ...
2
votes
2answers
122 views

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

I'm a bit of a total amateur, but I thought I would learn how to make a simple game during quarantine. However, I stumbled into a problem with fonts. I'm thinking about using the free font "...
0
votes
1answer
145 views

LibGDX Letter spacing is reduced if I use GlyphLayout to draw a bitmap font

I need to use glyphlayout so that I can centre the text, but I found if I do the text gets distorted due to the spacing being incorrect. ...
1
vote
1answer
841 views

DirectX 11, support for Font drawing

I have recently started to work with DirectX 11 and 12, I am using Microsoft Visual Studio Community Edition. I am under a 64-bit machine. I am currently rendering a frame with background and a window ...
9
votes
6answers
2k 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 ...
1
vote
0answers
132 views

Manual per-glyph rendering with SDL_TTF

I'm trying to create a font atlas with SDL_TTF. My idea was to create an SDL_Surface for every character using ...
2
votes
6answers
7k views

Using a particular font in a commercial game

I'm working on a game I intend to sell, and I want to use this font. The license says: "You may NOT copy or distribute the font outside of the licensed household, company, school or institution. ...
2
votes
1answer
362 views

How do I render Hindi text in Libgdx?

How do I render Hindi text in Libgdx using any font? For example, I want to render the word "प्रकार". Here is what I have, so far: ...
1
vote
1answer
149 views

Font rendering, how do you align glyphs of a font?

I'm trying to render text quad using texture generate by BitmapFontWriter of libgdx. For the font I can get ...
0
votes
1answer
46 views

Sampled texture from bitmap font produces blue glow

I'm creating a texture is DirectX 11 from bitmap fonts. I realize that I can use DXTK, but this is an exercise for me, not in learning another library. My sample code looks like this. ...
14
votes
3answers
9k views

How do I get beautiful small text in XNA without using external libraries?

In XNA, the spritefont technology is horrible. Nuclex does the job so much better, but I don't want to have any external references, and I'm nearly done with my game. When using fonts like Sansation ...
2
votes
1answer
196 views

How can I create color fonts to be used in Unity?

I've been searching, downloaded a couple programs that lets you convert images into fonts, but none let you obtain the color. They all switch them to black and white. While searching the internet, I ...
1
vote
2answers
2k views

Spritebatch and Shaperenderer

When I am using the same spritebatch to draw texture and calling shaperenderer inside it, it is kind of misbehaving, like texture is not getting drawn or font is not getting drawn, Why is it happening?...
7
votes
2answers
8k views

Vector-based fonts vs. bitmap fonts in (2d) games?

I know that many games are using bitmap fonts. Which are the advantages for vector-based font rendering / manipulation when compared to bitmap fonts and in which scenarios would they matter the most? ...
1
vote
0answers
48 views

Incorrect placement of diacritics in Arabic fonts

I put AdobeNaskh font on my texts and use Arabic text support for unity and use show Tashkeel function then the text appears so what is the solution of this problem?
0
votes
1answer
141 views

Doubt about font inclusion (GAMEMAKER)?

The default font of the GameMaker is arial, but it does not contain special characters that are present in the portuguese language. Soon I had to add a new font, but I activated the ASCII option so ...
0
votes
0answers
2k views

Blurry text in Unity UI at default scale

I'm working on a VR (GoogleVR Cardboard) game, and need to include UI elements within it. Ever since I first learned how to use Unity's UI elements, I've been limping around what seems to be a major ...
5
votes
2answers
2k views

Can I use fonts under C:\Windows\Fonts for text in my game?

I'm using Unreal Engine and their UMG system which comes with only one font by default ("Roboto"). The engine allows importing new fonts so I'm wondering whether I can use the fonts already available ...
1
vote
1answer
147 views

Unity font API behaves differently in built game

Specifically it's Font.CreateDynamicFontFromOSFont(), use this script attached to an empty GameObject in the scene. ...
0
votes
0answers
164 views

TTF glyph to OBJ

I'm looking for a method to convert a TTF glyph into a triangle mesh. I've tried making my own font constructing my own indices and vertices but it didn't go well: ...
0
votes
1answer
1k views

LibGdx: set TextButton font to a TrueTypeFont

I am making my first LibGdx game, and having an hard time understanding font scaling on TextButtons. Here is a comparison between the rendering on my Kindle Fire 7 and an high resolution tablet: I ...
4
votes
2answers
2k views

Creating and editing a .fnt file based on a PNG source

I am currently making a game, (obviously), with the LIBGDX Java Library. I have already made a font, (It's a PNG file, not a TTF or RTF), that looks something like this: (It's a mockup, by the way.) ...
0
votes
1answer
249 views

Xna Spritefont from installed fonts

I am using Spritefont in my game and I have downloaded a .ttf font and installed it on my machine. I am now using this font in my game. My question is if this game is run on another machine will the ....
1
vote
1answer
232 views

When I use a font in my game, do I have to include its license in the credits?

For example, if I use this font from Google Fonts: https://fonts.google.com/specimen/Open+Sans This font is licensed under Apache License 2.0 But regardless of the license, if it allows commercial ...
5
votes
1answer
3k views

What's best to use OTF or TTF? [closed]

What's the most recommended format should I use for fonts, OTF or TTF or another? In looking for: Performance/Efficiency with SDL_ttf library Free/Open-ness [1] [1] I'm planning to use GPL3 and ...
2
votes
1answer
142 views

libGDX font generating bug

Please, help me with my problem. The character is rendering incorrectly. R symbol looks like N. Also, the symbol ! is not drawn. But this problem was found only on Xiaomi Mi A1. On other devices, ...
1
vote
1answer
526 views

Font Changes in WebGL Build

I'm attempting to make a game for WebGL. However, everytime I export a build, the font always changes on everything, just like below. Original WebGL My default font is Arial and I have made a ...
3
votes
1answer
4k views

Freetype: create Signed Distance Field based font

I am trying to implement Font Rendering in my OpenGL C++ game. I read many articles on the subject and got to know different methods, but I am still learning. Valve has published a paper for Signed ...
1
vote
1answer
678 views

How to convert png images to True Type Font?

I'm doing a clone of Colonization and I'm trying to use the same font type as the original game. I'm able to get the pixels from the original font files (.ff) using the application from this thread ...
12
votes
1answer
19k views

How to match font size with screen resolution?

So I'm working on a game using LibGDX, and I have a problem. To make my game fit most resolutions, I created a base asset for each aspect ratio, for example, a main menu background image, I made it ...