Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Wrong character width with BitmapFontTexture

$
0
0

Character width calculation is wrong for not mono-spaced fonts. Error is here (BMFontLoaderTxt._buildCharInfo):

if (xadv) {
   width = xadv;
}

Character width is not always equal to xadv. Try to export Arial from BMFont and look to number characters  (48-57)

When rendering, wrong part of texture is taken for character.

@Nockawa


Viewing all articles
Browse latest Browse all 760

Trending Articles