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

learn more… | top users | synonyms

0
votes
0answers
27 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, the font disappears! My attempt at ...
1
vote
1answer
47 views

Is there a way to use other fonts, besides the default ones in OpenGLUT?

I'm using OpenGLUT functions like glutBitmapString to render sentences and words in a game. However, there is a limited set of fonts to use and I need some bigger size fonts. Is there a way to add new ...
0
votes
2answers
120 views

SharpDX/D3D: How to implement and draw fonts/text

I am playing with SharpDX (Direct3D for .NET) without using "Toolkit", already finished with basic rendering 3D models. But now i am wondering how to program/create fonts for game (2D), or how to ...
0
votes
1answer
65 views

LibGdx and in-game fonts - any proven methods?

I use 3 sizes for fonts in my game: small, medium, and large. I take the base font size and attempt to scale the font based on screen size and density, but this is proving to be pretty hard. Does ...
2
votes
1answer
59 views

Libgdx Get Font Height with a Wrap

is possible to get the 'Height' of a font drawed with the drawWrapped methods (with a wrapWidth) ? getMultiLineBounds only works when \n is used, but when drawing with drawWrapped it doesn't give the ...
0
votes
1answer
80 views

Poor text rendering quality with freetype

This is my first time that I use freetype library and I think I've got some problems. Right now, I draw the bitmap generated by freetype, but the generated image is really low quality. I've been ...
1
vote
1answer
71 views

Reuse VertexBuffer or new VertexBuffer object?

I'm trying to render bitmap fonts in directX10 at the moment, and I want to do this as efficiently as possible. I'm having a hard time getting a start on my design because of this question though. So ...
1
vote
1answer
159 views

AndEngine Font Issue

I am learning AndEngine. I am displaying Hello world using this code: public class myactivity extends SimpleBaseGameActivity { private final int CAMERA_WIDTH = 320; private final int CAMERA_HEIGHT ...
0
votes
0answers
43 views

Spritefonts gets very messed up when scaling up

I'm recoding a retro video game, but because the original resolution is very low, I scale everything up. I render to a renderTarget and render the renderTarget to the target resolution. I'm using my ...
0
votes
0answers
26 views

How to create custom bitmap .fnt font? [duplicate]

Bitmap font generator http://www.angelcode.com/products/bmfont can creates fonts in black and white only. I'm looking for more advanced tool. Share you experience on it please. Thanks in advance. ...
0
votes
0answers
22 views

Monogame and Visual studio 2010 express cant find spritefont template [duplicate]

I have monogame 3.0 and Visual Studio 2010 C# Express installed on my computer. I want to draw string on screen. But monogame wants me to add a spritefont for it. I click Content directory and ...
0
votes
1answer
193 views

MonoGame crash trying to load font from .xnb file

My MonoGame project uses a pre-compiled .xnb file to load a sprite font, and it works fine on Windows XP. The .xnb file is marked as content and copied to the output directory. I've copied the ...
1
vote
1answer
184 views

How to properly calculate y position when drawing from .fnt bitmap font?

I want to render text to bitmap to use it later as a decal texture. I've read through libGDX fonts drawing code and came up with this: private void writeTextToPixmap(Pixmap destPixmap, Pixmap ...
0
votes
1answer
199 views

Drawing text in SlimDX with Directx 11?

How can I draw text to the screen in directx 11 with slimdx? In SlimDX.Direct3D10 there's a font class which can be used but there's no font class in SlimDX.Direct3D11.
1
vote
0answers
167 views

Why do my LWJGL fonts have dots and lines around them?

When we render fonts there are weird dots and lines around the text. I have no idea why this would happen. Here is an image of what it looks like: Our font class looks like this: package ...
5
votes
2answers
369 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 ...
2
votes
1answer
249 views

Include a custom font when publishing in Visual Studio XNA

I have a custom font called "Gold Box Games" that I want to use in a game I'm making. I have the font installed on my computer and it works just fine in the program when I run it in test. However, ...
1
vote
0answers
142 views

What part of my engine should load images and fonts? [duplicate]

Right now, I have an AssetLoader interface, which has one implementation per platform. There can only be one instance of it, because it has some state (e.g. the path to the APK on Android). It has ...
7
votes
2answers
254 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 ...
8
votes
3answers
1k 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 ...
2
votes
1answer
128 views

AngelCode's Bmfont about widths

In AngelCode's Bmfont is there a way to make it so that all of the widths are equal?
4
votes
2answers
763 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
189 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: CFontManager::Instance().renderWrappedText(font, lineLength, position, text); Unfortunately there is a ...
1
vote
0answers
79 views

Rendering text with stb_font results in glitches

I'm trying to render text with OpenGL and an "inline"-font taken from the stb_fonts The relevant code for initializing the font & rendering: LabelFactory::LabelFactory() { static unsigned ...
1
vote
3answers
370 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.
1
vote
2answers
2k views

LWJGL Text Rendering

Currently in my project I am using LWJGL and the Slick2D library to render text onto the screen. Here is a more specific example: Font f = new Font("Times New Roman",Font.BOLD,18); font = new ...
16
votes
7answers
995 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 ...
3
votes
1answer
709 views

What's best to use OTF or TTF?

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 ...
4
votes
1answer
370 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 content and I've added Nuclex.Fonts ...
3
votes
2answers
758 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 ...
1
vote
1answer
323 views

UIView with IrrlichtScene - iOS

i have a UIViewController in a Storyboard and want to draw a IrrlichtScene in this View Controller. My Code: WWSViewController.h #import <UIKit/UIKit.h> @interface WWSViewController : ...
1
vote
0answers
2k views

bmGlyph alternative for windows (Bitmap font generator)

I have been using this tool (bmGlyph http://www.bmglyph.com/) to create fonts from apple machines, but now, I'm on windows and need a program with same / more features. The main features about this ...
7
votes
2answers
911 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
2answers
2k 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
2answers
518 views

Custom Fonts in cocos2d

I have tried Hiero but it has NEVER worked for me. Is there an alternative application for creating fonts for cocos2d? Thanks
2
votes
1answer
3k views

Using the same font with different sizes in libgdx

I am using BitmapFonts, LabelStyles and Labels for my texts. I want to resize some labels, so i use this. fontType.scale(-.6f); LabelStyle style = new LabelStyle(fontType, Color.WHITE); titleLabel ...
6
votes
2answers
2k 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 ...
1
vote
0answers
220 views

Some help converting XML to LINQ (Also, Kerning Bitmap fonts) [closed]

I'm currently trying to devise a way to kern bitmap fonts in XNA 4.0. The two easiest ways I've found are to use either BMFontGen or BMFont. I chose to work with BMFontGen, as it was made ...
2
votes
2answers
1k views

XNA C# How to draw fonts in different color

I'm doing a simple chat system with XNA C#. It is a chatbox that contains 5 lines of chat typed by the users. Something like a MMORPG chatting system. [User1name] says: Hi [User2name] says: Hello ...
5
votes
1answer
2k 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.
3
votes
2answers
1k 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... Create a texture for ...
1
vote
0answers
159 views

Where can I find True Type fonts that are free for commercial use? [duplicate]

Possible Duplicate: Where can I find fonts for my game? Does anyone know of fonts that are true type and unicode that can be used in a commercial game for free?
2
votes
2answers
201 views

How to get and copy font bitmap from WinGDI to a IDirect3DTexture9?

I want to get the pixels (or other data) for any character of the available fonts and copy/build them into a D3D texture so I could make some cache of text rendering by mapping only the character ...
10
votes
3answers
5k 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 ...
7
votes
1answer
1k 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 ...
2
votes
1answer
496 views

DX9 sprite / font draw depth order

I need the ability to order the drawing of sprites and fonts. Some sprites need to be drawn behind and some in front of text. My problem is that my sprites and fonts use separate Begin() End() calls ...
6
votes
2answers
655 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 ...
6
votes
1answer
764 views

Font library for XNA

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
3answers
4k 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: <FontName>Kootenay</FontName> or ...
10
votes
4answers
9k views

Preferred way to render text in OpenGL

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 ...