Conversation
Lib/glyphsLib/classes.py
Outdated
| ) | ||
|
|
||
| _classesForName = { | ||
| ".appVersion": str, |
There was a problem hiding this comment.
These shouldn't be here, my git client went mad.
|
There's obviously now a lot of duplication between the |
|
wait, are you no longer using openstep-plist? That'd be a bummer.. It's super fast, and I made it for this very purpose. |
|
Yeah, not until this passes: |
|
Third time's a charm, I think. I've made more progress in one afternoon than in the past week. |
|
where can I find that file you mentioned "tests/data/GlyphsFileFormatv3.glyphs"? (it's not in your PR branch) |
…being views on the _shapes list
Old style for now
|
Given the lack of manpower, I’d take the heavy handed approach of testing this branch with a big collection of Glyphs 2 files, if nothing breaks then it is good and merge. Given that Noto is the original driving force behind glyphsLib, then probably that is a good collection to test with. If this is fine, I can try doing that. |
|
To me the whole point of having a regression test suite is to give you confidence that new changes don’t introduce regressions in behaviour that you care about. If you don’t think the test suite is adequate and you don’t trust it to do that, by all means add new test cases. |
|
I have no idea if the existing test suite really covers everything that is relevant, so if someone can spend some time giving this PR a good thrashing with various Glyphs.app files, that'd help. |
|
I tried to build noto fonts, but like have of the fonts don’t even build with its current setup, so I’m giving up. |
|
You mean Noto does not build from source right now? |
|
Yes, the first font that fails is the N'ko font, but if you delete it other fonts will fail |
|
That's funny. Their CI seems to be unhinged. Maybe file an issue? https://github.com/googlefonts/noto-source/issues |
|
Running |
|
I used |
|
|
|
Thanks @khaledhosny. I should have seen that. |
|
I have quite a collection of Glyphs 2 and 3 files, but most of them have TrueType hints, so glyphsLib bails out when trying to build them ... |
|
glyphsLib or fontmake? If there’s a problem reading the hints with this branch, please let me know. |
|
@simoncozens When I try to use glyphs2ufo on this file, I get this traceback. Not sure how to pinpoint what specific piece of data causes it ... When I remove userData and hinting, I get a different error: |
|
Oh, I’m in a special kind of Glyphs hell ;) In Sudo there are some TT hints that can not be seen in TT instructor nor deleted by setting |
|
Thanks for this. I deleted the hints by hand and it converted fine, so I will see what's going on with the hint parsing code. |
|
I gave up trying to build Noto and opted for something less ambitious, I changed the build script to output UFO from fontmake instead and compared the output with glyphsLib main and this branch. I’m getting this warning with all fonts: Here are some of the common diff’s I’m seeing: diff --git a/master_ufo/Cousine-Bold.ufo/lib.plist b/master_ufo/Cousine-Bold.ufo/lib.plist
index 2582c29164..342aec4533 100644
--- a/master_ufo/Cousine-Bold.ufo/lib.plist
+++ b/master_ufo/Cousine-Bold.ufo/lib.plist
@@ -18,7 +18,7 @@
<key>com.schriftgestaltung.appVersion</key>
<string>1277</string>
<key>com.schriftgestaltung.customParameter.GSFont.disablesAutomaticAlignment</key>
- <true/>
+ <integer>1</integer>
<key>com.schriftgestaltung.customParameter.GSFont.useNiceNames</key>
<integer>0</integer>
<key>com.schriftgestaltung.customParameter.GSFontMaster.customValue</key>diff --git a/master_ufo/NotoKufiArabic-Black.ufo/lib.plist b/master_ufo/NotoKufiArabic-Black.ufo/lib.plist
index bacb012519..c270714eae 100644
--- a/master_ufo/NotoKufiArabic-Black.ufo/lib.plist
+++ b/master_ufo/NotoKufiArabic-Black.ufo/lib.plist
@@ -17,15 +17,6 @@
<string>1350</string>
<key>com.schriftgestaltung.customName</key>
<string>Black</string>
- <key>com.schriftgestaltung.customParameter.GSFont.Axes</key>
- <array>
- <dict>
- <key>Name</key>
- <string>Weight</string>
- <key>Tag</key>
- <string>wght</string>
- </dict>
- </array>
<key>com.schriftgestaltung.customParameter.GSFont.Enforce Compatibility Check</key>
<integer>1</integer>
<key>com.schriftgestaltung.customParameter.GSFont.disablesAutomaticAlignment</key>diff --git a/master_ufo/NotoLoopedLao-Regular.ufo/glyphs/aV_owel-lao.glif b/master_ufo/NotoLoopedLao-Regular.ufo/glyphs/aV_owel-lao.glif
index 673edf0b65..946f734f3e 100644
--- a/master_ufo/NotoLoopedLao-Regular.ufo/glyphs/aV_owel-lao.glif
+++ b/master_ufo/NotoLoopedLao-Regular.ufo/glyphs/aV_owel-lao.glif
@@ -96,7 +96,7 @@
<array>
<dict>
<key>horizontal</key>
- <true/>
+ <integer>1</integer>
<key>options</key>
<integer>0</integer>
<key>origin</key>
@@ -116,7 +116,7 @@
</dict>
<dict>
<key>horizontal</key>
- <true/>
+ <integer>1</integer>
<key>options</key>
<integer>0</integer>
<key>origin</key>diff --git a/master_ufo/NotoSans-Condensed.ufo/glyphs/ostroke-blackletter.glif b/master_ufo/NotoSans-Condensed.ufo/glyphs/ostroke-blackletter.glif
index 79d52763b7..3d0c8b559d 100644
--- a/master_ufo/NotoSans-Condensed.ufo/glyphs/ostroke-blackletter.glif
+++ b/master_ufo/NotoSans-Condensed.ufo/glyphs/ostroke-blackletter.glif
@@ -34,7 +34,7 @@
<string>Lowercase</string>
<key>com.schriftgestaltung.componentsLocked</key>
<array>
- <true/>
+ <integer>1</integer>
</array>
</dict>
</lib>(So far, this true/1 change accounts for most of the diff) |
diff --git a/master_ufo/NotoSansIV-Italic.designspace b/master_ufo/NotoSansIV-Italic.designspace
index 7fd075a26d..6911400c9c 100644
--- a/master_ufo/NotoSansIV-Italic.designspace
+++ b/master_ufo/NotoSansIV-Italic.designspace
@@ -4,13 +4,11 @@
<axis tag="wght" name="Weight" minimum="100" maximum="100" default="100">
<map input="100" output="26"/>
</axis>
- <axis tag="wdth" name="Width" minimum="100" maximum="100" default="100"/>
</axes>
<sources>
<source filename="NotoSansIV-LightItalic.ufo" name="Noto Sans IV Light Italic" familyname="Noto Sans IV" stylename="Light Italic">
<location>
<dimension name="Weight" xvalue="26"/>
- <dimension name="Width" xvalue="100"/>
</location>
</source>
<source filename="NotoSansIV-Italic.ufo" name="Noto Sans IV Italic" familyname="Noto Sans IV" stylename="Italic">
@@ -20,43 +18,36 @@
<info copy="1"/>
<location>
<dimension name="Weight" xvalue="90"/>
- <dimension name="Width" xvalue="100"/>
</location>
</source>
<source filename="NotoSansIV-SemiBoldItalic.ufo" name="Noto Sans IV SemiBold Italic" familyname="Noto Sans IV" stylename="SemiBold Italic">
<location>
<dimension name="Weight" xvalue="151"/>
- <dimension name="Width" xvalue="100"/>
</location>
</source>
<source filename="NotoSansIV-BoldItalic.ufo" name="Noto Sans IV Bold Italic" familyname="Noto Sans IV" stylename="Bold Italic">
<location>
<dimension name="Weight" xvalue="190"/>
- <dimension name="Width" xvalue="100"/>
</location>
</source>
<source filename="NotoSansIV-CondensedLightItalic.ufo" name="Noto Sans IV Condensed Light Italic" familyname="Noto Sans IV" stylename="Condensed Light Italic">
<location>
<dimension name="Weight" xvalue="26"/>
- <dimension name="Width" xvalue="70"/>
</location>
</source>
<source filename="NotoSansIV-CondensedItalic.ufo" name="Noto Sans IV Condensed Italic" familyname="Noto Sans IV" stylename="Condensed Italic">
<location>
<dimension name="Weight" xvalue="90"/>
- <dimension name="Width" xvalue="70"/>
</location>
</source>
<source filename="NotoSansIV-CondensedSemiBoldItalic.ufo" name="Noto Sans IV Condensed SemiBold Italic" familyname="Noto Sans IV" stylename="Condensed SemiBold Italic">
<location>
<dimension name="Weight" xvalue="151"/>
- <dimension name="Width" xvalue="70"/>
</location>
</source>
<source filename="NotoSansIV-CondensedBoldItalic.ufo" name="Noto Sans IV Condensed Bold Italic" familyname="Noto Sans IV" stylename="Condensed Bold Italic">
<location>
<dimension name="Weight" xvalue="190"/>
- <dimension name="Width" xvalue="70"/>
</location>
</source>
</sources>
@@ -64,7 +55,6 @@
<instance name="Noto Sans IV Thin Italic" familyname="Noto Sans IV" stylename="Thin Italic" filename="../instance_ufo/NotoSansIV-ThinItalic.ufo" stylemapfamilyname="Noto Sans IV Thin" stylemapstylename="italic">
<location>
<dimension name="Weight" xvalue="26"/>
- <dimension name="Width" xvalue="100"/>
</location>
<kerning/>
<info/> |
diff --git a/master_ufo/NotoTraditionalNushu.designspace b/master_ufo/NotoTraditionalNushu.designspace
index 4441f86bf9..8fe320d152 100644
--- a/master_ufo/NotoTraditionalNushu.designspace
+++ b/master_ufo/NotoTraditionalNushu.designspace
@@ -2,9 +2,7 @@
<designspace format="4.1">
<axes>
<axis tag="wght" name="Weight" minimum="300" maximum="700" default="400"/>
- <axis tag="wdth" name="Width" minimum="100" maximum="100" default="100">
- <map input="100" output="5"/>
- </axis>
+ <axis tag="wdth" name="Width" minimum="5" maximum="5" default="5"/>
</axes>
<sources>
<source filename="NotoTraditionalNushu-Light.ufo" name="Noto Traditional Nushu Light" familyname="Noto Traditional Nushu" stylename="Light">The rest of the diffs are instances of the examples above. |
|
5102f8a might fix the diffs you saw above. |
|
-> #691 |
No description provided.