Closed PascalPixel closed 7 years ago
What's your problem?
We need a ttf but the software crashes
I'm not an esper, please describe details of your problem as possible as you can.
I need these information:
font.ini
file, it was required by bdf2ttf.
- The bitmap font needs to be converted to svg outlines
- the svg outlines file needs to be converted to a .ttf or .otf
bdf2ttf just embeds bitmap glyphs (as bitmap) to ttf. It doesn't convert bitmap to vector (svg like). So you can't use bdf2ttf for your purpose.
If TTF supports bitmap that would be ok! We only need one size :)
It may be that generated TTF can't be shown in web browsers, is it ok for you? I have tested those on Windows native apps only (and it was over 10 years ago).
If it is ok for you, please prepare Windows environment and try Windows binary.
If you want to execute bdf2ttf on mac, please try make osx
at top dir of this project.
It will build bdf2ttf's executable file if you have enough toolchains or so.
But I can't assure anythings, because it is very very very old.
Thank you @koron! I was able to build the executable after changing all the =
parameters to ==
to turn the assignments into an equality comparisons
You are right I need a .ini
file that I don't have.
Do you have a .bdf
file and font.ini
file that I can use to compare my .fnt
xml
file to?
Please check https://github.com/koron/bdf2ttf/blob/master/sample.ini 👍
Aye I don't think it's working anymore
Input is 4.4MB but output is 1.4MB and doesn't work
It looks like your pixel_noto.bdf
is broken and strange.
It contains very small glyphs only.
For example, this is glyph data for a 0
character, its width is 4 pixels and height is 6 pixels.
STARTCHAR 0030
ENCODING 48
SWIDTH 500 0
DWIDTH 4 0
BBX 4 6 0 0
BITMAP
E0
90
90
90
90
E0
ENDCHAR
And it will be generated as 8 pixel (6 point) font.
Input is 4.4MB but output is 1.4MB
It is not matter. bdf2ttf embedd bitmap glyphs as binary, but bdf has those as text. Generated TTF will be smaller than BDF..
And your attached pixel_noto.ttf can be shown by gvim in Windows like this.
with this setting.
set gfn=Noto_Sans_CJK_JP_ThinRegularNot:h6:cSHIFTJIS:qDRAFT
Wow it's working with a setting? I guess I won't be able to use the output .ttf as a webfont.
I need to go back and find a way to cut the mapped .fnt and .png into separate images, then convert them to svg, then somehow to an svg font.
Thank you for your help Mr. Esper!
I haven't try that but potrace and fontforge might work good for your purpose. Please check it https://fontforge.github.io/autotrace.html
noto_42px.zip