andryblack / fontbuilder

Bitmap font generator
MIT License
454 stars 99 forks source link

add a new function - grid alignment #20

Closed shikulja closed 6 years ago

shikulja commented 8 years ago

really need this function, because the only way to correctly align the font, in some games. For example it has done in CBFG.

doug65536 commented 8 years ago

Can you describe what you mean by "grid alignment"? Do you mean, find the largest character and lay out the image with each character in a cell of that maximum size?

doug65536 commented 8 years ago

...or do you mean by manually specifying the cell size, horizontally and vertically?

shikulja commented 8 years ago

Yes vertically and horizontally, as is done in CBFG. you need to be able to make the letters on the grid, currently there is no such possibility.

shikulja commented 8 years ago

just as there is no manual selection of image size, then only automatic. eg 256x256 512x512, etc.

ghost commented 7 years ago

This would simplify my life a lot, as I wouldn't have to deal with metrics metadata files. I could simply calculate the offset of the row and column of the desired character. My use-case is sampling from a font texture in a shader, so not dealing with metadata would be a huge win.