Comments (4)
We can define and adjust custom fallback fonts, as explained by Simon Hearne and others. But using f-mods
(ascent-override
, descent-override
, line-gap-override
, advance-override
), we can only adjust vertical glyph sizes, so that's not really helpful against flash of unstyled font. We can (and do) control container sizes to prevent layout shift.
https://www.speedkit.com/blog/reducing-layout-shift-with-custom-fallback-fonts/#How to Define Custom Fallback Fonts
There are still some important aspects to be learned, including the useful font drop online tool.
Calculating the required values might seem complex, but the information we need is already in your web font file. First you'll need the TTF or WOFF(2) file for your font; if you use Google Fonts then you can check find the TTF in the GitHub repository. If you have licensed a font from a foundry then the TTF should have been supplied already.
Once you have the font file, head on over to FontDrop and upload the file. Open the Data tab and scroll to the hhea - Horizontal Header Table. There you should find four key values: ascender, descender , line-gap and advanceWidthMax.
https://simonhearne.com/2021/layout-shifts-webfonts/#reduce-layout-shift-with-f-mods
from kleiderordnung-berlin.
With such limited opportunities for fallback font adjustment, there is not much to be done, except to ensure layout does not shift, which it does not do anymore due to better container control already implemented before.
from kleiderordnung-berlin.
Contact form fonts not fine on Edge on Windows (and on mobile Chrome, see #46 (comment))
from kleiderordnung-berlin.
Contact Form Style Follow-Up in #46
from kleiderordnung-berlin.
Related Issues (20)
- Testimonial Stories Carousel UX
- language switch must return canonical home page
- Intro / Page Enhancements
- Mobile Usability issues and a11y Review HOT 2
- 404 missing preview image
- read more option HOT 2
- secondary calls to action
- calendly (icon link + ) integration
- content update: hub event news
- add calendly calendar appointments
- Web form / CTA usability
- contact button target on mobile/tablet
- respect reduced transparency preference
- add scannable contact QR code
- Change ALL email addresses HOT 1
- broken footer link to partner MOEON
- fix translations
- duplicate feature line after click read more
- add optional sticker HOT 2
- content update: more testimonials HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kleiderordnung-berlin.