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

font viewer does open .woff file formats by default. #1158

Open
mjarkk opened this issue Jul 22, 2020 · 2 comments
Open

font viewer does open .woff file formats by default. #1158

mjarkk opened this issue Jul 22, 2020 · 2 comments

Comments

@mjarkk
Copy link

mjarkk commented Jul 22, 2020

Distribution (run cat /etc/os-release):
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):
None

Issue/Bug Description:
if clicked on a file with a .woff or .woff2 file extension in gnome files an error message shows up with no software found to open this file format.
If i right click on the file and select Open With Other Application the fonts viewer doesn't show up, i need to click on view all applications and from there i can click on the fonts program.

I find this a bit wired because the fonts program is the default program for .ttf files so why not for .woff and why is the program not under the "Recommended Applications"

Steps to reproduce (if you know):

0. Have a fresh install version of Pop OS

  1. Download a font woff font file.
  2. Try to open it by clicking on it

Expected behavior:

When i click on a .woff(2) file opens in the fonts program just like with .ttf files.

Other Notes:

None

@jacobgkau
Copy link
Member

For .woff files, it looks like there needs to be a change to the .desktop file adding font/woff to the MimeType list, and the same change needs to be made to the .thumbnailer file in order for thumbnails to generate. I've opened a merge request upstream for this: https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/merge_requests/15

GNOME Fonts does not appear to support .woff2 fonts at all. I see this message when I try to open a .woff2 file:

woff2-error

If you have a .woff2 file that you are able to open in GNOME Fonts, could you provide the output of mimetype [filename]?

@mjarkk
Copy link
Author

mjarkk commented Jul 24, 2020

It seems like i was somewhat wrong here.
So i got the fonts from base64 data without any information about the actual font format.
I just named them .woff but the files where un recognized by gnome so i renamed them to .woff2 and still no luck.
When i manually selected gnome fonts both the file formats opened fine so i kinda expected that the font format for .woff and .woff2 overlap.

But it seems like gnome fonts checks the minetype and i now can confirm that these files where all font/woff not woff2

@mjarkk mjarkk changed the title font viewer does open .woff(2) file formats by default. font viewer does open .woff file formats by default. Jul 24, 2020
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

2 participants