Nimbin[12]?Sway / SwAS / commit_message.txt

SwAS git · main

SwAS - app switcher for sway (SVG/PNG icons, themeable)

sway wayland c launcher · first commit 2026-08-08 · last commit 2026-11-10 (13 days ago) · synced 1 hour ago · upstream: github.com/nimbin2/SwAS

C 97.9% Markdown 1.4%
git clone https://git.christianimmanuel.de/sway/SwAS.gitwget https://git.christianimmanuel.de/sway/SwAS/archive/SwAS.tar.gz
commit_message.txt 626 B · 13 lines raw
sw_draw: sw_font_h(), a font sized by its line height

sw_font(px) means the em square, which is what a font size is everywhere
else. Some callers do not have a font size, they have a box: the wheel in
swas places a label at cy - height/2 and wants text that tall. For those,
sw_font_h(px) returns the face whose line height is about px, found by
measuring one and scaling.

Both are now available and neither guesses on the other's behalf: ask for a
size with sw_font, for a height with sw_font_h.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SuAfijAAYjLpcVwhCq3AF4