For OP: I think "Type specimen" should be the default sample text, just to get readers into the right spirit. :) For anyone else reading this: make sure you click on the "controls & metrics" at the bottom to try out all the options (such as comparing with your browser's "text-wrap: pretty"); it's really cool!
Show HN: Justif – Knuth-Plass justification and microtypography for the web
11–20 of 43 posts
Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#12Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#13I haven't looked at the API yet, but the demo is great on my phone. Instead of just justified blocks, can you have it do a "justified" (even amount of spacing) from an irregularly shaped right edge (in my case, an image on the right side of a design template I made)?
Feel free to make a GitHub issue with details and I can take a look at supporting it. For now the workaround would be falling back to native justification by excluding the paragraph from justif, and using css float/shape-outside to get the desired edge.
Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#14Chromium supposedly implemented Knuth-Plass for CSS's "text-wrap: balance", but reading the end of the tracking bug [0] it seems it stops at six lines? (Design doc: [1]) [0] https://issues.chromium.org/issues/40270471 [1] https://docs.google.com/document/d/1jJFD8nAUuiUX6ArFZQqQo8yT...
Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#15But this demo blew me away! Fantastic!
Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#16Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#17Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#18I haven't had a chance to read the code yet, but how does this actually adjust the text? I get that it uses Knuth-Plass to calculate layout, but what does it do in CSS (or SVG?) to apply the layout to the DOM?
Looks like the first commit was sometime last week, which is pretty tight turnaround for something like this. For my own sanity when reading the code (no judgment either way), did you use LLMs to help write this? Knowing is helpful for me to calibrate what I pay attention to when reading through the code.
Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#19Re: Show HN: Justif – Knuth-Plass justification and microtypography for the web
#20I haven't looked at the API yet, but the demo is great on my phone. Instead of just justified blocks, can you have it do a "justified" (even amount of spacing) from an irregularly shaped right edge (in my case, an image on the right side of a design template I made)?