-
Notifications
You must be signed in to change notification settings - Fork 1
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
Preparing for Google Fonts #6
base: main
Are you sure you want to change the base?
Conversation
Changelist - implemented production names - Deleted softhyphen - Deleted unreachable glyph (_10457) - Renamed to Regular & adajusted weightClass - Adjusted vertical metrics to follow new GF recommendations - Updated version string.
- Set Vertical metrics - Implement production names - Delete soft hyphen - Delete unreachable? (_10457) - Rename to Regular & adjust weightClass to 400 - Remove soft hyphen (00AD) - Correct version number
- modified build shell script to ensure working properly - added requirements file - disabled webfont generation and added version number in config - Corrected encoding ID bug in ufo_process file and added code to remove localized NID 16/17 which confuse things. - Cleaned up metadata in .fcp file (removing localized names from certain parts which appeared to cause problems).
Added comments to the UFO processing script, added BASE table support. Also resolved overlapping and broken outlines in some glyphs. Not sure why it is fully replacing the UFOs, but here we are.
The ufo is no longer included in the repository, but instead the ufoz. So there's now an extract script (and a "compress.sh" to create the .ufoz before uploading) that converts before building. I've also updated the pre-processing file to add NID entries for localized NID1, and Latin NID16 to keep things similar across languages.
Seems some of the modifications I made in the .fcp file didn't make it to the UFO. So I have re-exported them. Also changed the approach on the opentype name records
In reviewing the comments on Cactus, I recalled that there was a request to use Aside from that, I changed my approach on the name table entries per FB feedback. |
Had a wrong variable in my name table modifications. Now will include other localized name table entries, in addition to adding NID1, and stripping 16/17.
- FCP doesn't properly export the USE_TYPO_METRICS flag, so I need to re-add it. - Also updated source to get localized NID4
I've reviewed the new system here on the latest branch, the syetem seems good to work with. Since neither me nor the author are expecting to run the system locally, I think a makefile + GitHub actions would better fit the three repos here. A few points on the build system:
|
Adding a build script. Let's see what happens!
Fixing permissions
making sure that the venv is active when building
disabling bits that aren't necessary
Fixing the encodingID bug
@NightFurySL2001 Thanks for the feedback! I've created the github workflow stuff that run off of the makefile. Figure it would be easier to keep it so just in case y'all want to run it on Windows, you can. per your questions:
|
That is back to the other problem where older FC does not add encodingID, but newer FC does so correctly. Is the BASE table added in FCP file or post process? Technical part so far seems fine for me, I'll call @MoonlitOwen to come in and check the FCP and UFOZ files. I'll do some minor fixes to the GitHub Actions later to commit the built binary file in repo. |
Unfortunately I don't think there's a way around this, except by updating FCP. Having two encodingID (that are identical) in the UFO doesn't seem to be problematic, though, so I think the current implementation is OK.
It is added in the FCP file prior to building.
Thanks! |
Just want to ask where is the BASE table in the FontCreator UI to validate the changes.
I think this would do: with open(file, "r", encoding="utf-8-sig") as f:
contents = f.read()
with open(file, "w", encoding="utf-8") as f:
f.write(contents) |
I didn't see a place to do it directly in the FC UI. There was a binary editor which isn't particularly useful, but I was able to add the table in via the
It is worth keeping in mind that the files may not be |
(in Python it's Quote from https://docs.python.org/3/howto/unicode.html:
Quote from https://docs.python.org/3/library/codecs.html#encodings-and-unicode:
|
Hello!
I've been working on preparing UoqMunThenKhung for onboarding to GF and wanted to provide you with a PR of the changes I made, in case you'd like to merge them back upstream, or have any questions / comments.
Note, all source changes have been made in the
.fcp
source with version15.0.0.2978
. Hopefully this means it'll be easy for you to work on in the future.Here's a list of the changes made:
softhyphen
/softhyphen.rotat
_10457
)uni0032.half
uni7B25
uni5352
uni5B58
uni6D1B
uni58BA
uni5E57
uni695D
uni78C6
uni8E1F
uni7147
uni0032.half.rotat
On that last item, we recently have had a long discussion regarding how vertical metrics should be set for C/J font families, and finally decided to proceed with implementing a new approach on them. Please feel free to read that thread if you're interested in the background!
For UoqMunThenKhung, I have set the following metrics:
If you have a preference for these to be set differently, let's talk! I'm happy to discuss.
FontBakery FAILS
At present there are still 3 Fontbakery FAILS:
This check needs to be updated as the font contains GF's kernal glyph coverage.
The new vertical metrics are not yet reflected in fontbakery.
"UoqMunThenKhung" is a camel case name, so I have submitted a PR to the whitelist file to bypass this error.