Skip to content
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

Remove OTF from distr to avoid confusion #939

Closed
tonsky opened this issue Jan 30, 2020 · 11 comments
Closed

Remove OTF from distr to avoid confusion #939

tonsky opened this issue Jan 30, 2020 · 11 comments
Milestone

Comments

@tonsky
Copy link
Owner

tonsky commented Jan 30, 2020

TTF has hinting, OTF has not. If your OS relies on it, use TTF (Windows, Linux probably too). On macOS hinting is ignored, so both TTF and OTF should work the same.

@tonsky --- I just did a fresh install of linux and was struggling to get the font rendering right in vscode. After several hours of meddling with system, searching in my linux forms, I finally found the above point. And this resolved the issue --- I had installed OTF version.

So, I would suggest putting this point (TTF for linux, windows and OTF for macOS) somewhere in the home page or help section so that users can easily find it.

And thanks for this beautiful font!

Originally posted by @werunom in #798 (comment)

@tonsky tonsky added this to the 3 milestone Jan 30, 2020
@werunom
Copy link

werunom commented Jan 30, 2020

Great! I have pointed this out to my linux distribution so that suitable message can be provided at the repository level as well. See here.

Thanks!

@bmdixon
Copy link

bmdixon commented Feb 4, 2020

FYI the install instructions for using chocolatey on windows say to install firacode. This has a note to say it will install the OTF fonts, for TTF you need the firacode-ttf package.

@tonsky
Copy link
Owner Author

tonsky commented Feb 4, 2020

thx @bmdixon, fixed!

@salim-b
Copy link

salim-b commented Jun 8, 2020

The DEB package provided in the Ubuntu repositories also installs the OTF version of FiraCode which results in a blurry view.

The files in the fonts-firacode package from Ubuntu 20.04's universe repository:

$ apt-file list fonts-firacode
fonts-firacode: /usr/share/doc/fonts-firacode/README.md.gz
fonts-firacode: /usr/share/doc/fonts-firacode/changelog.Debian.gz
fonts-firacode: /usr/share/doc/fonts-firacode/copyright
fonts-firacode: /usr/share/doc/fonts-firacode/examples/fira_code.css
fonts-firacode: /usr/share/fonts-firacode/woff/FiraCode-Bold.woff
fonts-firacode: /usr/share/fonts-firacode/woff/FiraCode-Light.woff
fonts-firacode: /usr/share/fonts-firacode/woff/FiraCode-Medium.woff
fonts-firacode: /usr/share/fonts-firacode/woff/FiraCode-Regular.woff
fonts-firacode: /usr/share/fonts-firacode/woff/FiraCode-Retina.woff
fonts-firacode: /usr/share/fonts-firacode/woff2/FiraCode-Bold.woff2
fonts-firacode: /usr/share/fonts-firacode/woff2/FiraCode-Light.woff2
fonts-firacode: /usr/share/fonts-firacode/woff2/FiraCode-Medium.woff2
fonts-firacode: /usr/share/fonts-firacode/woff2/FiraCode-Regular.woff2
fonts-firacode: /usr/share/fonts-firacode/woff2/FiraCode-Retina.woff2
fonts-firacode: /usr/share/fonts/opentype/firacode/FiraCode-Bold.otf
fonts-firacode: /usr/share/fonts/opentype/firacode/FiraCode-Light.otf
fonts-firacode: /usr/share/fonts/opentype/firacode/FiraCode-Medium.otf
fonts-firacode: /usr/share/fonts/opentype/firacode/FiraCode-Regular.otf
fonts-firacode: /usr/share/fonts/opentype/firacode/FiraCode-Retina.otf

Maybe someone could inform the corresponding Debian package maintainer?

@FredHappyface
Copy link

I always thought that otf was the superior format (clearly I was wrong). So I guess my question is what is the benefit of using otf (is it for compatibility or something)?

@tonsky
Copy link
Owner Author

tonsky commented Jun 8, 2020

I think at some point OTF was superior to TTF, but now they are mostly the same. The difference between OTF and TTF is that TTF can embed hinting instructions, which are essential for rendering on low-res displays.

@tonsky tonsky closed this as completed Jun 8, 2020
@FredHappyface
Copy link

FredHappyface commented Jun 8, 2020

Makes sense, thanks for clearing that up 😄

@salim-b
Copy link

salim-b commented Jun 8, 2020

Maybe someone could inform the corresponding Debian package maintainer?

I asked the Debian package maintainers to ship the TTF instead of the OTF version: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962478

@jsejcksn
Copy link

jsejcksn commented Jun 8, 2020

TTF has hinting, OTF has not
(link)

I always thought that otf was the superior format (clearly I was wrong)
(link)

I think at some point OTF was superior to TTF, but now they are mostly the same. The difference between OTF and TTF is that TTF can embed hinting instructions, which are essential for rendering on low-res displays.
(link)

I want to make sure there is no misinformation here, since there seems to be some confusion regarding font format and file extension.

The most recent release (v5) includes OpenType format fonts, using TrueType outlines and the .ttf extension.


OpenType is a superior format to TrueType: it's a newer format based on TrueType, and improves it by several important features, such as:

  • Unicode character encoding
  • Expressive typographic features like small caps, old style figures, ligatures, etc.
  • Variable fonts (as of OpenType 1.8)

OpenType supports using either TrueType (TT) or PostScript (PS/CFF) outlines (TrueType uses embedded hinting, PostScript relies on the rasterizer).

Here are a few links regarding OpenType formats:

@tonsky
Copy link
Owner Author

tonsky commented Jun 8, 2020

Thanks @jsejcksn that clears out a lot of things!

@jsejcksn
Copy link

jsejcksn commented Jun 8, 2020

@tonsky After reading some more issues like #1057, I suggest that you publish a patch update with the same TTF files from version 5, but using the .otf extension. I don't think file extensions should be primary signals in modern software, but it seems like there are some workflows which still use them.

(To be clear, I mean literally just change the file extension from .ttf to .otf)

farseerfc added a commit to farseerfc/FiraCode that referenced this issue Jun 11, 2020
The otf-fira-code package is just removed from Arch Linux community repo. ttf-fira-code is distributed from the start. 
Related tonsky#939
tonsky pushed a commit that referenced this issue Jun 11, 2020
The otf-fira-code package is just removed from Arch Linux community repo. ttf-fira-code is distributed from the start. 
Related #939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants