Code Monkey home page Code Monkey logo

Comments (5)

viralpatel380 avatar viralpatel380 commented on August 23, 2024 3

SnowB Use this instead ! Thank me later ;)

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

Hi @edwinfinch, I just tried to reproduce the problem, here is a picture to compare the glyphs (font size == 88):

image

Looks pretty the same (considering different rendering engines: WinGDI and Freetype2).

Command line for fontbm:

%fontbm% --font-file %font_file% --output %output% --background-color 0,0,0 --spacing-vert 1 --spacing-horiz 1 --chars 48,49,50,51,52,53,54,55,56,57,58 --font-size 88

Config file for BMFont:

# AngelCode Bitmap Font Generator configuration file
fileVersion=1

# font settings
fontName=Bebas Neue
fontFile=./fonts/BebasNeue-Regular.ttf
charSet=0
fontSize=-88
aa=1
scaleH=100
useSmoothing=1
isBold=0
isItalic=0
useUnicode=1
disableBoxChars=1
outputInvalidCharGlyph=0
dontIncludeKerningPairs=0
useHinting=1
renderFromOutline=0
useClearType=0

# character alignment
paddingDown=0
paddingUp=0
paddingRight=0
paddingLeft=0
spacingHoriz=0
spacingVert=0
useFixedHeight=0
forceZero=0

# output file
outWidth=256
outHeight=256
outBitDepth=32
fontDescFormat=0
fourChnlPacked=0
textureFormat=png
textureCompression=0
alphaChnl=4
redChnl=0
greenChnl=0
blueChnl=0
invA=0
invR=0
invG=0
invB=0

# outline
outlineThickness=0

# selected chars
chars=48-58

# imported icon images

I can try to reproduce the problem with your copy of bebas_regular.ttf, could you please share it?

from fontbm.

edwinfinch avatar edwinfinch commented on August 23, 2024

Thanks for taking a look at this Vlad!

Here's my copy of Bebas Regular: https://io.lazarus.watch/_resources/other/bebas_regular.ttf

Let me know if I can be of any more help.

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

I tried with your font, the same result, then noticed your BMFont data file contains size=104, it means "Match char height" (Font Settings dialog) is not ticked (otherwise this value is negative). In this mode BMFont/fontbm sizes don't correspondent to each other, I think it was the problem.

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

added a notify about char sizes to README

from fontbm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.