New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide this font in TTF format #7

Open
noscript opened this Issue Apr 11, 2016 · 12 comments

Comments

Projects
None yet
4 participants
@noscript

noscript commented Apr 11, 2016

Where is ttf/ subfolder?

@sunaku

This comment has been minimized.

Owner

sunaku commented May 24, 2016

After many tries, I've abandoned all hope of generating TTFs with FontForge, but this looks promising. 🙏

@noscript

This comment has been minimized.

noscript commented May 24, 2016

I will give it a try.

@sunaku

This comment has been minimized.

Owner

sunaku commented Jul 2, 2016

Well, I gave it a shot but encountered an error: koron/bdf2ttf#1 😬

@sunaku

This comment has been minimized.

Owner

sunaku commented Jul 3, 2016

Thanks to @koron, we're finally making progress:

screenshot

See also koron/bdf2ttf#2

@noscript

This comment has been minimized.

noscript commented Jul 3, 2016

Can't wait 😄

@sunaku

This comment has been minimized.

Owner

sunaku commented Jul 4, 2016

I've hit a dead end with bdf2ttf 👊, trying FontForge again: fontforge/fontforge#2738 😵

@vasili111

This comment has been minimized.

vasili111 commented Jul 13, 2016

Waiting ttf too :)

@sunaku sunaku added the upstream label Jul 29, 2016

@sunaku sunaku changed the title from No ttf? to Provide font in TTF format Jul 29, 2016

@sunaku sunaku changed the title from Provide font in TTF format to Provide this font in TTF format Aug 13, 2016

@sunaku sunaku added the help wanted label Oct 5, 2016

@sunaku

This comment has been minimized.

Owner

sunaku commented Oct 5, 2016

Just to clarify: I'm waiting for feedback from FontForge developers in issue fontforge/fontforge#2738.
If you're knowledgeable about TTF or passionate about this issue, feel free to help move this forward. 🙇

@tobia

This comment has been minimized.

tobia commented Sep 19, 2017

I managed to convert it very easily using https://github.com/ali1234/bitmap2ttf but I'm having an issue with the space character width.

The reason I'm trying to create a TTF file is that AFAIK Sublime Text does not supports X11 fonts. With the TTF file I created, hard tabs line up correctly with the text, but the space character does not. A single space seems to be rendered 5 pixels wide instead of 8 (using 8x15):

space_width

I get the same results with the Tamsyn PCF files. I'm not sure whether this is a bug in the font definition, in the bitmap2ttf tool, or in Sublime Text. Other editors don't seem to have this bug, using the same TTF file. Does anybody know how to fix it?

@sunaku

This comment has been minimized.

Owner

sunaku commented Sep 23, 2017

Thanks for the suggestion @tobia! 👍 That tool is generating "blank" SVGs for space characters:

/tmp/tmprKeQ4w/00032.svg:<svg width="500.0" height="1000"><path d="" fill="currentColor"/></svg>
/tmp/tmprKeQ4w/00160.svg:<svg width="500.0" height="1000"><path d="" fill="currentColor"/></svg>

As a result, my fontforge (version 11-Aug-2017) is refusing to process those two "blank" SVGs:

$ fontforge -script /tmp/tmprKeQ4w/Tamzen8x16r.ttf.pe
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 13:46 UTC 11-Aug-2017-ML-D.
 Based on source from git with hash:
I'm sorry this file is too complex for me to understand (or is erroneous)

It seems your Fontforge did not reject the conversion outright and instead gave you a zero-width blank glpyh for the space character (codepoint 32). That's why you're observing that issue in your screenshot. 😅

@sunaku sunaku removed the upstream label Oct 23, 2017

@vasili111

This comment has been minimized.

vasili111 commented Jul 5, 2018

Here guy transformed bitmap to ttf. There are some clues but no tutorial.

@vasili111

This comment has been minimized.

vasili111 commented Jul 7, 2018

There is a response in comments about how to convert fonts. https://int10h.org/blog/2018/05/flexi-ibm-vga-scalable-truetype-font/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment