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
30
votes
7answers
19k views

Where can I find fonts for my game? [closed]

Where can I find fonts (preferably free, but a reasonable fee is acceptable) that I can use in my for-pay/commericial game?
29
votes
12answers
86k views

Tool to create a bitmap font from a true type font [closed]

What tool do you use to convert ttf fonts to bitmap fonts? Following is a list of features I'm looking for. I'd be happy with any tool really, but one that had these features would be better. ...
17
votes
7answers
1k views

UI mockups to the code

My UI designer has made a lovely photoshop PSD of the UI and everything pretty. The biggest problem I'm having is converting some of the more elegant fonts used into something renderable in-game. Is ...
17
votes
5answers
19k views

Preferred way to render text in OpenGL [closed]

I'm about to pick up computer graphics once again for an university project. For a previous project I used a library called FTGL that didn't leave me quite satisfied as it felt kind of heavy (I tried ...
16
votes
5answers
5k views

Where can I find fonts which I can distribute with an open source game? [closed]

I want to be able to release my game as open source, and I need to be able to distribute font files with my game. Where can I find fonts which I can use in this way, and what font licenses should I be ...
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 ...
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 ...
11
votes
2answers
15k views

Problem to match font size to the screen resolution in libgdx

I'm having problems to show text on my game at same size on different screens, and I did a simple test. This test consists to show a text fitting at the screen, I want the text has the same size ...
9
votes
2answers
2k views

Is Font Squirrel for real?

I found Font Squirrel, and while it claims to have fonts free for commercial use, i can't find a license or legal pages anywhere. Are these fonts really usable for commecial use like they say?
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 ...
8
votes
2answers
7k views

Are fonts covered by copyright?

I want to use the font Trajan Pro, but I'm not sure that it would be legal. I've read a bit on fonts and copyright, and the only thing I could get was it depends on the license and where it was ...
8
votes
2answers
2k views

Is it reasonable to use FreeType [closed]

Won't it slow my game if I use FreeType lib and convert 2 fonts from .ttf instead of using preloaded BitmapFont .png? Or may be FreeType so fast, that I can use fonts both ways? All I need is to ...
8
votes
5answers
5k views

OpenGL's matrix stack vs Hand multiplying

Which is more efficient using OpenGL's transformation stack or applying the transformations by hand. I've often heard that you should minimize the number of state transitions in your graphics ...
8
votes
3answers
6k 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 ...
8
votes
1answer
2k views

XNA - just a few more characters accepted in a SpriteFont

I have a SpriteFont in XNA, which has the standard 126 characters that are usable. However i would like to use the "ಠ" symbol in the game. So is there anyway of adding just a few more symbols that ...
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? ...
7
votes
2answers
444 views

How do I implement variation in font letters, like handwriting?

I can use a sprite sheet to automatically use a custom font. What I'd like to do though is to have several versions of each letter, such that the letters can be varied and more natural looking (a la ...
7
votes
2answers
4k views

How to deal with variable size font in XNA 4.0

After searching for a while, I found no way to draw vector/scalable fonts in XNA 4.0 (which would be perfect...) and I am currently in a bind about how to render fonts for my game. In the game I use ...
6
votes
1answer
5k views

How do I get the height of an XNA SpriteFont?

I have some text in a spritefont and I need to know the height in pixels. I would have thought that MeasureString() would get me close to it, but it seems to just be about length.
6
votes
2answers
1k views

How do I render Unicode characters that my font doesn't support?

How would I go about rendering all Unicode characters? Most font files don't include characters like these.
6
votes
3answers
5k views

XNA: SpriteFont question

I need some help with the SpriteFont. I want a different font for my game, other than Kootenay. So, I edit the SpriteFont xml, i.e: ...
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 ...
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
140 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: ...
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
832 views

How to display unicode text in monogame?

I'm looking for ways to draw any characters that may be entered in any language, on any keyboard, so that I don't have any trouble with limited language support in a monogame project. So far I've ...
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: ...
5
votes
4answers
2k views

How to handle font loading?

I need to display text in my game, who doesn't. I had originally thought that I could just statically render all the text I would need to images and use those. I'm starting to think that is a bad ...
5
votes
1answer
583 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 ...
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 ...
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 ...
5
votes
1answer
591 views

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: ...
5
votes
2answers
2k views

How can I render fonts in a game with correct hinting?

I've used angel code's bitmap font generator quite a bit; though it's very good, I wonder if there would be a way to use the hinting information to provide a better and more readable result, by using ...
5
votes
1answer
596 views

Can't load vector font in Nuclex Framework

I've been trying to get this to work for the last 2 hours and I'm not getting what I'm doing wrong... I've added Nuclex.TrueTypeImporter to my references in my ...
5
votes
0answers
678 views

Text alignment in OpenGL with FreeType2

I'm trying to implement font rendering and have got into some trouble with glyph metrics. Here's the code where I get the metrics: ...
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 ...
4
votes
3answers
4k views

Bitmap Font Displays in Center Always Without Coding it Manually (Fix Coordinate Problem onText)

Is there a way on how to stay the texts in center without manually coding it or something, especially when making an update? I'm making a display for the highest score. Let's say that the score is 9. ...
4
votes
1answer
1k views

Dialog Title Does Not Fit

I successfully added my own font to the default .json file and it displays, however I get some weird sizing issues. Specifically when I try to create a Dialog. This is what it looks like: Ignore the ...
4
votes
2answers
3k views

Why is my text is too large even when scaled to .05f in libGDX?

I'm trying to scale down my fonts as my game objects are also small. I'd like to scale them down the same way as my sprites. However, if I scale them below .05, ...
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 ...
4
votes
2answers
2k views

How to create a font from an image for a game?

I found a font in a free pack of sprite as an image: I'm wondering what would be the best way to use it in a game? Is there tools to create a font from this image? Do i have to code it myself? I ...
4
votes
2answers
4k views

Legality of AngelCode's BMFont

Is it legal to use a bitmapped version of a proprietary font (such as Arial) in a commercial app? I'm using AngelCode's BMFont to generate a bitmapped version of a few various system installed fonts ...
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.) ...
3
votes
2answers
3k views

Creating Font Textures in Direct3d without D3DX

Update: The completed solution using Nathan Reed's answer is posted in my answer below A few open source programs I've seen that render installed fonts do something like this... ...
3
votes
1answer
142 views

How can I find a free or cheap redistributable font supporting runic characters?

I've been looking around for a font to include in my game which supports rune characters, specifically this Unicode block. All the sites I go to don't demonstrate what Unicode characters that font ...
3
votes
1answer
203 views

How to maintain char widths of non-monospace fonts?

Having a font via spritesheet (as PNG), the easiest way to render fonts from that is just showing chars as monospace, but as you can imagine, that looks not pretty with chars like ...
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 (...
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 ...
3
votes
1answer
713 views

Vertical alignment of a padded font generated by Hiero in libgdx

I've generated bitmap fonts for libgdx using Hiero. I've got several distance field fonts that require a lot of padding, unfortunately they don't seem to align correctly. Below is a font with a ...
3
votes
1answer
733 views

Draw fonts in Hololens using SharpDX

I am using SharpDX to create an application in Hololens and I'm trying to understand how to use DirectWrite to draw variable text in 3D stereoscopic view. I have ...