-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
fix(themes): use only woff files and fix firefox font line gap warning #2480
Conversation
I am very sorry, the |
Doesnt matter. THiS PR is still valid in case of not using ttf/eot/svg anymore. i'll adjust the PR description |
fixes fomantic#2478 How the PR was made: 1. data URIs were saved into files: - [DropdownFont.woff](https://github.com/lubber-de/Fomantic-UI/files/9696395/DropdownFont.woff.zip) - [CheckboxFont.woff](https://github.com/lubber-de/Fomantic-UI/files/9696397/CheckboxFont.woff.zip) - [AccordionFont.woff](https://github.com/lubber-de/Fomantic-UI/files/9696398/AccordionFont.woff.zip) - [StepFont.woff](https://github.com/lubber-de/Fomantic-UI/files/9696400/StepFont.woff.zip) - [DocsFont.woff](https://github.com/lubber-de/Fomantic-UI/files/9696693/DocsFont.woff.zip) 2. open with FontForge editor note `Step` file (only this one file) has shown ![image](https://user-images.githubusercontent.com/2228672/193547435-9ae44736-c4e0-400f-a5f3-b010c27ddfe2.png) on open - no action taken ![image](https://user-images.githubusercontent.com/2228672/193556628-d9290483-14ea-476f-8011-f386acc28e7c.png) ![image](https://user-images.githubusercontent.com/2228672/193549082-7010ae8c-1b07-4811-8fc4-8ec9eaa920f2.png) 3. show only available glyphs Encoding menu -> Compact (hide unused glyphs) 4. change Element menu -> Font Info -> OS/2 -> Metrics tab -> Typo Line Gap from `-32` to `0`, according to https://www.high-logic.com/fontcreator/manual11/properties-metrics.html it is MacOS specific setting and > Negative Line Gap values are treated as zero. this statement is consistent with Firefox message and behaviour 5. save it File menu -> Generate Fonts... -> save as WOFF when exporting `Step` font, the following shown ![image](https://user-images.githubusercontent.com/2228672/193558938-e32d40d3-1f90-48b3-97b2-f6a71429845e.png) I changed the size from 1000 to 1024 6. convert back to data URI with https://base64.guru/converter/encode/file and commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
As woff files are supported everwhere since IE11, i removed all eot,ttf,svg files and their references. Also adjusted some according theme references to match the new LESS-map icon generation
This PR also adjusts the negativ linegap issue. Thanks to @mvorisek which kindly added his fixes into this PR directly via lubber-de#51
Closes
#2478
#1254
Semantic-Org/Semantic-UI#2146