Menu

#Font

329 posts

Feed·
7 of 329 posts
font-display: swap Fixes Invisible Text. It Also Shifts Your Layout.
📰
0Read More

font-display: swap Fixes Invisible Text. It Also Shifts Your Layout.

DEV Community·Parsa J·about 4 hours ago
#TOjWXu6J
#devcommunity#dev#font#swap#fallback

Setting font-display: swap kills the flash of invisible text, so most teams call the font-loading problem solved and move on. It doesn't — it just trades FOIT for a layout shift Lighthouse will happily dock you for. Here's the actual fix.

15s
font-display: swap Fixes Invisible Text. It Also Shifts Your Layout.
📰
0Read More

font-display: swap Fixes Invisible Text. It Also Shifts Your Layout.

DEV Community·Parsa J·about 4 hours ago
#Xl6svWfR
#dev#font#swap#fallback#sans

Setting font-display: swap kills the flash of invisible text, so most teams call the font-loading problem solved and move on. It doesn't — it just trades FOIT for a layout shift Lighthouse will happily dock you for. Here's the actual fix.

15s
A font-license checkpoint for PDF-to-HTML: what fsType can and can't tell you
📰
0Read More

A font-license checkpoint for PDF-to-HTML: what fsType can and can't tell you

DEV Community: javascript·Lank_M·about 2 hours ago
#GF5YCxcB
#devtojavascript#devto#dev#font#fstype

If you convert PDFs into web pages, someone eventually asks whether you are allowed to put the PDF's...

15s
Chromium turned my CFF OpenType font into Type 3 at every fsType value I tried
📰
0Read More

Chromium turned my CFF OpenType font into Type 3 at every fsType value I tried

DEV Community: javascript·hao jia·about 2 hours ago
#NZdJB8ay
#devtojavascript#devto#dev#font#fonts

Which fonts survive "print to PDF" as real fonts, and which ones turn into drawing instructions? That...

15s
Why my converted PDF page showed a different font: it was Type 1, not a license flag
📰
0Read More

Why my converted PDF page showed a different font: it was Type 1, not a license flag

DEV Community: javascript·NullPointerZen·about 2 hours ago
#02A38sw0
#devtojavascript#devto#dev#font#fstype

I converted a 4-page brochure PDF to HTML and the headline font survived while the body text came out...

15s
What the fsType field in a font means, and how to read it with fontTools
📰
0Read More

What the fsType field in a font means, and how to read it with fontTools

DEV Community: javascript·yue xing·about 2 hours ago
#DUdwCAlr
#devtojavascript#devto#dev#font#fstype

Font tooling keeps mentioning fsType, and it is easy to treat it as a magic number where 0 is fine...

15s