Skip to content

--font-size not working properly #221

@rahji

Description

@rahji

Describe the bug
I am using --font-size and the results are incorrect.

To Reproduce
Steps to reproduce the behavior:

  1. Run freeze with --font-size 18
  2. Run it again with --font-size 36
  3. 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

font-size 18:
Image

font-size 36:
Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions