-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Describe the bug
I am using --font-size
and the results are incorrect.
To Reproduce
Steps to reproduce the behavior:
- Run freeze with
--font-size 18
- Run it again with
--font-size 36
- Compare the resulting images
Expected behavior
I expect the font to be larger in the second image. Instead, the font appears only slightly larger in size (the difference between 10 and 36 is almost unnoticeable). The margins change instead. Also the UI elements get smaller when a larger font size is specified. This doesn't happen with every command, so it has something to do with the width/height of the output.
This works as expected: freeze --font.family "Noto Mono" --font.size 18 --window --execute "echo xyz123"
This does not:
wget https://github.com/rahji/wordsearch-cli/blob/main/starwars.txt
freeze --font.family "Noto Mono" --font.size 36 --window --execute "go run github.com/rahji/wordsearch-cli@latest --file starwars.txt"
mv freeze.png 36.png
freeze --font.family "Noto Mono" --font.size 18 --window --execute "go run github.com/rahji/wordsearch-cli@latest --file starwars.txt"
mv freeze.png 18.png
The results are shown below:
Screenshots
Desktop (please complete the following information):
- OS: Windows 11 WSL2 Ubuntu
- Browser [e.g. chrome, safari]
- Version Linux CFA-L-F888JR3 5.15.167.4-microsoft-standard-WSL2 feat: filter content by line numbers #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels