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

ofl/*: Incorrect fsType, macStyle and name table settings #641

Open
m4rc1e opened this issue Feb 7, 2017 · 11 comments
Open

ofl/*: Incorrect fsType, macStyle and name table settings #641

m4rc1e opened this issue Feb 7, 2017 · 11 comments
Assignees

Comments

@m4rc1e
Copy link
Collaborator

m4rc1e commented Feb 7, 2017

We've decided to fix some collection wide problems. I have written a quick and dirty script to locate families which have bad fsType and macStyle values

Bad FsType families:
nanumgothiccoding
exo2
khyay
frijole
playfairdisplay
phetsarath
siemreap
freehand
karla
nanummyeongjo
nanumgothic
averiaseriflibre
nanumbrushscript
bayon
moulpali
content
suwannaphum
myanmarsanspro
averialibre
preahvihear
siamreap
bokor
angkor
baumans
khmer
averiasanslibre
souliyo
padauk
dangrek
titilliumweb
chenla
sansation
battambang
kdamthmor
moul
novamono
taprom
averiagruesalibre
hanna
metal
playfairdisplaysc
nanumpenscript
odormeanchey
kantumruy
notosans
koulen

Bad Mac Style families:
khand
alegreyasans
seoulhangangcondensed
exo2
passionone
share
allan
seoulnamsancondensed
tillana
simonetta
josefinslab
cinzeldecorative
adventpro
rajdhani
orbitron
alegreyasc
alegreyasanssc
kanit
sarpanch
elsie
karma
ruda
abhayalibre
elsieswashcaps
titilliumweb
coustard
overlock
miama
vollkorn
seoulhangang
averiagruesalibre
exo
teko
chivo
cinzel
seoulnamsan
cambay

I'll tidyup and extend the script to hotfix these tomorrow. I need to do further research before I go for the hotfix.

cc @davelab6

@davelab6
Copy link
Member

davelab6 commented Feb 8, 2017 via email

@m4rc1e
Copy link
Collaborator Author

m4rc1e commented Feb 8, 2017

@davelab6 yes, fixing the macStyle alone isn't enough.

For hot fixing fonts from 3rd parties. I've always run them through our FB script https://github.com/m4rc1e/fontbakery/blob/master/fontbakery-nametable-from-filename.py

This script will convert the filename into a nametable which complies to our spec. The fsSelection and macStyle bits also get set correctly. I'll rename this issue since the scope has changed a little.

@m4rc1e m4rc1e changed the title ofl/*: Incorrect fsType and macStyle settings ofl/*: Incorrect fsType, macStyle and name table settings Feb 8, 2017
@davelab6
Copy link
Member

davelab6 commented Feb 8, 2017

I'll rename this issue since the scope has changed a little.

apache/* fonts also need a look; the ufl/* stuff we can't directly bat on because of the trademark stuff, but we should report anything we would want to do to it :)

@m4rc1e
Copy link
Collaborator Author

m4rc1e commented Feb 9, 2017

@davelab6 Thanks, I'll implement this.

@davelab6 davelab6 added this to the Bugs in Font Files Requiring Hotfix milestone Feb 10, 2017
@davelab6
Copy link
Member

Now that @felipesanches 's dashboard shows all families in production, it would be great if @m4rc1e can go over the FB errors and ensure they are classified correctly, especially the 'critical' ones, so that then those bugs can be hot fixed along with the above 3 (fsSelection, macStyle, name table) so the effort to push 100+ family updates doesn't have to be repeated

@m4rc1e
Copy link
Collaborator Author

m4rc1e commented Apr 19, 2017

Just to point out, FB has an overview page. I can now see the total number of families which are failing on certain issues.

I propose the collection wide hotfix to solve the following issues:

  • Name tables
    • Add Mac fields if missing. Some fonts only have Windows entries
    • License and License url fields are correct
    • Update Copyright to reflect new standard
    • Font version and head version are consistent
  • FsType and macStyle bits
    • Correct bits selected, depending on style
  • Font Tables
    • Remove unwanted tables such as kern when a gpos table is present
  • License txt files
    • first line of OFL.txt to be new Copyright string
  • Hinting
    • Fix the gasp table

I really dislike hot fixes and prefer to do these things at the source level. However, many sources are non existent or need to be derived from other sources. This hotfix solution needs to be more than a mere hammer. It should be a sanitiser that can be used on all families, when they're being onboarded :-).

cc @graphicore @felipesanches @davelab6

@davelab6
Copy link
Member

@m4rc1e @graphicore @felipesanches before I start merging in all the PRs that Marc has made to address some of these issues, I'd like to have a FB dashboard that can track the progress of the fix from PR here to production; and to know that the hotfixes are comprehensive, such that we won't need to do another round of pushing 100s of families again in the near future. Thoughts? :)

@laerm0
Copy link
Contributor

laerm0 commented Nov 20, 2017

Hey @davelab6 @m4rc1e @felipesanches @graphicore , I've got this on my to-do list. I figured I'd check in with what's up with FB and the dashboard now before I come up with a plan.

@davelab6
Copy link
Member

davelab6 commented Nov 20, 2017 via email

@laerm0
Copy link
Contributor

laerm0 commented Nov 21, 2017

Ah, okay, thanks. I'll look into what @thlinard posted tomorrow.

@m4rc1e
Copy link
Collaborator Author

m4rc1e commented Nov 21, 2017

@laerm0 @davelab6 In March I wrote a collection hotfixer which fixed fsType, fsSelection, usWeightClass and nametables, https://github.com/m4rc1e/gf-hotfix. Due to the urgency, it isn't polished.

More than happy to have a hangout to define the problem better.

@laerm0 laerm0 self-assigned this Feb 21, 2020
@RosaWagner RosaWagner removed this from the Bugs in Font Files 02 Requires Hotfixing milestone Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants