frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

A GUI disk image writer for macOS. For when you're tired of dd

https://github.com/tenox7/dufus/
1•tenox•1m ago•0 comments

Fit.ly – AI Outfit Generation

https://fitly-app.onrender.com/
1•seanwarrren•1m ago•1 comments

The biggest iceberg is almost gone

https://europeancorrespondent.com/en/r/the-worlds-biggest-iceberg-is-almost-gone
1•stared•3m ago•0 comments

VoxeliumX – easy open-source tool to run Minecraft servers

1•Cheesehamster•7m ago•0 comments

Netherlands reaches deal to cut reliance on U.S. cloud tech

https://nltimes.nl/2026/04/24/netherlands-reaches-deal-european-cloud-company-decrease-us-tech-re...
2•01-_-•11m ago•0 comments

Free Online Tools for PDF, Image and Video – ToolHive

https://trytoolhive.com
1•farahfarah•11m ago•0 comments

Gecko: A fast GLR parser with automatic syntax error recovery

https://vnmakarov.github.io/parsing/compilers/c/open-source/2026/04/22/gecko-glr.html
2•fanf2•13m ago•0 comments

The Bracket – A Government Man

https://agovtman.substack.com/p/the-bracket
1•jjar•17m ago•0 comments

Onio.club

https://onio.club/
1•kkoncevicius•19m ago•0 comments

Canada's AI Startup Cohere Buys Germany's Aleph Alpha to Expand in Europe

https://www.reuters.com/legal/transactional/canadas-cohere-germanys-aleph-alpha-announce-merger-h...
1•ipieter•20m ago•0 comments

A practical guide to time for developers: clocks, drift, NTP, and PTP

https://www.dmytrohuz.com/p/a-practical-guide-to-time-for-developers
3•dmyhuz•22m ago•0 comments

Superscript Asterisk in Unicode

https://blog.zgp.org/superscript-asterisk-in-unicode/
1•b6dybuyv•24m ago•0 comments

Spinel: Ruby AOT Native Compiler

https://github.com/matz/spinel
3•dluan•27m ago•0 comments

Stock markets are too high and set to fall, says Bank of England deputy

https://www.bbc.com/news/articles/c75kp1y43lgo
4•wood_spirit•28m ago•1 comments

TorchWebGPU: Running PyTorch Natively on WebGPU

https://github.com/jmaczan/torch-webgpu
1•yu3zhou4•29m ago•0 comments

I over-engineered my AI coding setup one justified upgrade at a time

https://machinethoughts.substack.com/p/every-upgrade-made-sense-how-i-over
1•jurreB•36m ago•0 comments

A red pixel in the snow: How AI found a lost climber

https://www.bbc.com/future/article/20260108-how-ai-solved-the-mystery-of-a-missing-mountaineer
2•tellarin•36m ago•0 comments

We Are Xbox

https://news.xbox.com/en-us/2026/04/23/we-are-xbox/
3•quyleanh•38m ago•0 comments

SSE token streaming is easy, they said

https://zknill.io/posts/everyone-said-sse-token-streaming-was-easy/
1•zknill•40m ago•0 comments

UK gaming icon Peter Molyneux on AI, his final creation and a changing industry

https://www.bbc.com/news/articles/c4glw5nyrggo
3•tellarin•40m ago•2 comments

Software engineering may no longer be a lifetime career

https://www.seangoedecke.com/software-engineering-may-no-longer-be-a-lifetime-career/
3•sarmike31•49m ago•0 comments

DroidVM – Run virtual machine on Android Phones with near-native performance

https://github.com/droid-vm/droidvm
1•shelfchair•49m ago•0 comments

Okren – Founding Engineering Operator – Europe /Remote – Pre-Seed – Equity-First

https://okrenai.com/
1•freddiebrown3rd•51m ago•0 comments

Show HN: Founder Decision Engine

https://github.com/michaelaz774/decision-engine
1•michael774•52m ago•0 comments

Tim Cook wrote a winning recipe for Apple

https://www.economist.com/leaders/2026/04/23/tim-cook-wrote-a-winning-recipe-for-apple
2•edward•53m ago•0 comments

Design.md: A format spec for describing a visual identity to coding agents

https://github.com/google-labs-code/design.md
5•rbanffy•55m ago•1 comments

Vision Banana | Google DeepMind

https://vision-banana.github.io
1•rldjbpin•57m ago•0 comments

Is Helium the Browser Brave Was Meant to Be?

https://itsfoss.com/helium-browser/
1•dotcoma•58m ago•0 comments

Self-Reference

https://en.wikipedia.org/wiki/Self-reference
2•nill0•58m ago•0 comments

Discouraging "the voice from nowhere" (~LLMs) in documentation

https://forum.djangoproject.com/t/discouraging-the-voice-from-nowhere-llms-in-documentation/44699
1•marbartolome•59m ago•0 comments
Open in hackernews

Show HN: Sidebearing-trim – align text to visible ink, not the glyph box

https://sidebearing-trim.js.org/
2•peksi•1d ago
Ahoy HN!

I'm sure most of you have at least subconsciously noticed that when aligning heading to a layout edge or another element, text always appears slightly indented. This is indistinguishable on smaller font sizes, but starts to be noticeable especially on bigger sans-serif font sizes.

This has been discussed in the internet without any proper solutions. There's even a W3C CSS proposal from 2014 for "font-side-bearings: trimmed" that has remained stale. https://lists.w3.org/Archives/Public/www-style/2014Jan/0242....

This npm-package 'sidebearing-trim' fixes the issue. By extracting .woff font metrics we're detecting starting characters of the visual lines and shift each row by exactly the sidebearing value of its first glyph.

This is my first npm package so please expect it to be still rough around the edges. Happy to hear your feedback!

Comments

nigardev•1d ago
wrestled with this exact problem on a landing page last year. ended up manually tweaking padding per font family which is obviously garbage. the js solution is cleaner but curious how it handles web fonts that are still loading. do you use font-display swap or wait for load to measure
peksi•1d ago
Glad 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 fonts

https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet... )

Edit: Didn't read the question fully on the first go