Show HN: Sidebearing-trim – align text to visible ink, not the glyph boxsidebearing-trim.js.org2 points·by peksi·3 เดือนที่ผ่านมา·1 comments
peksi·3 เดือนที่ผ่านมา·discussGlad to know that I'm not alone with this problem!I'm using opentype.js to parse the font. This happens without the browser renderer, so it's not affected by the CSS font state.( For solely rendered font manipulation there's also 'await document.fonts.ready' which resolves once the document has loaded the fontshttps://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet... )Edit: Didn't read the question fully on the first go
I'm using opentype.js to parse the font. This happens without the browser renderer, so it's not affected by the CSS font state.
( For solely rendered font manipulation there's also 'await document.fonts.ready' which resolves once the document has loaded the fonts
https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet... )
Edit: Didn't read the question fully on the first go