Skip to content

squint 0.1.7

Choose a tag to compare

@bisand bisand released this 16 Sep 14:44
· 7 commits to main since this release

0.1.6 opened on macOS with no words in its chrome: no name on a tab, nothing in the status line, and a settings window of empty rows. The document itself was fine. This fixes it.

  • San Francisco is readable again. 0.1.6 moved to reading a glyph when it is drawn rather than every glyph when a face is opened, and that reader was built without what a variable font needs. macOS's own UI face, SFNS.ttf, is a variable font, so every outline in it came back empty: the face parsed, it reported a glyph for every character it had, and it drew none of them. Nothing failed and nothing was logged — the lines were the right height and blank. Fixed upstream in DeniseUI 0.30.1.
  • A face nothing can be drawn in is walked past. squint took the first face on its list that this machine had a file for, and drew in whatever that turned out to be. It now walks on to the next, so a face that parses with no ink in it costs a fallback rather than a window with no words in it. Only a face that has a letter, a digit or a full stop and draws none of them is turned away: one with none of those to ask about — Braille, Cuneiform, Webdings, a Nerd Font of icons alone — is taken at its word, being somebody's deliberate choice and full of ink.

In practice this was macOS alone. The faces squint reaches for on Linux and Windows are not variable ones, and the text is drawn in Fira Code, which is not either — though a variable face chosen in Settings would have drawn blank on any platform.

Built on DeniseUI 0.30.1.