[GH-ISSUE #73] Font size is wrong #48

Closed
opened 2026-03-02 16:47:45 +03:00 by kerem · 5 comments
Owner

Originally created by @bendem on GitHub (Mar 15, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/73

I don't know how the images are rendered, but it looks like the fonts are not specified and it picks up default from somewhere. I have large fonts enabled anywhere I can for reasons. This is the output generated right after install with no customization applied yet:

status:
git-sim-status_03-15-23_14-41-10
merge:
git-sim-merge_03-15-23_14-52-10

System infos:

> cat /etc/system-release
Rocky Linux release 8.7 (Green Obsidian)

> uname -r
5.15.90.1-microsoft-standard-WSL2

> dnf list --installed ffmpeg cairo pango | cat
Installed Packages
cairo.x86_64                1.15.12-6.el8                @appstream
ffmpeg.x86_64               4.2.8-1.el8                  @rpmfusion-free-updates
pango.x86_64                1.42.4-8.el8                 @appstream

> pipx list
venvs are in /home/demarteaub/.local/pipx/venvs
apps are exposed on your $PATH at /home/demarteaub/.local/bin
   package git-sim 0.2.7, installed using Python 3.9.13
    - git-dummy
    - git-sim
Originally created by @bendem on GitHub (Mar 15, 2023). Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/73 I don't know how the images are rendered, but it looks like the fonts are not specified and it picks up default from somewhere. I have large fonts enabled anywhere I can for reasons. This is the output generated right after install with no customization applied yet: status: ![git-sim-status_03-15-23_14-41-10](https://user-images.githubusercontent.com/2681677/225329487-c9f3c9a0-1bed-46ab-a312-c66eeabef46c.png) merge: ![git-sim-merge_03-15-23_14-52-10](https://user-images.githubusercontent.com/2681677/225329492-9dde93e8-c111-4941-b3da-d2f7adfd53eb.png) System infos: ```console > cat /etc/system-release Rocky Linux release 8.7 (Green Obsidian) > uname -r 5.15.90.1-microsoft-standard-WSL2 > dnf list --installed ffmpeg cairo pango | cat Installed Packages cairo.x86_64 1.15.12-6.el8 @appstream ffmpeg.x86_64 4.2.8-1.el8 @rpmfusion-free-updates pango.x86_64 1.42.4-8.el8 @appstream > pipx list venvs are in /home/demarteaub/.local/pipx/venvs apps are exposed on your $PATH at /home/demarteaub/.local/bin package git-sim 0.2.7, installed using Python 3.9.13 - git-dummy - git-sim ```
kerem closed this issue 2026-03-02 16:47:46 +03:00
Author
Owner

@bendem commented on GitHub (Mar 15, 2023):

Same problem when running in docker so my guess about it using my system settings seems off the table.

<!-- gh-comment-id:1470178027 --> @bendem commented on GitHub (Mar 15, 2023): Same problem when running in docker so my guess about it using my system settings seems off the table.
Author
Owner

@bendem commented on GitHub (Mar 15, 2023):

bisect:

3533002e3e726fa991038aca347c51d5f208b8c6 is the first bad commit
commit 3533002e3e726fa991038aca347c51d5f208b8c6
Author: Jacob Stopak <jacob@initialcommit.io>
Date:   Tue Feb 28 16:38:57 2023 -0800

    Refactor all subcommands to accomodate new diverse branching system

    Signed-off-by: Jacob Stopak <jacob@initialcommit.io>

 git_sim/add.py                  |   3 +-
 git_sim/branch.py               |   2 +-
 git_sim/cherrypick.py           |   4 +-
 git_sim/commit.py               |   3 +-
 git_sim/git_sim_base_command.py | 146 ++++++++++++++++++++++++------------
 git_sim/log.py                  | 162 ----------------------------------------
 git_sim/merge.py                |   7 +-
 git_sim/rebase.py               |   7 +-
 git_sim/reset.py                |   9 ++-
 git_sim/restore.py              |   3 +-
 git_sim/revert.py               |   8 +-
 git_sim/stash.py                |   3 +-
 git_sim/status.py               |   3 +-
 git_sim/tag.py                  |   2 +-
 14 files changed, 127 insertions(+), 235 deletions(-)
<!-- gh-comment-id:1470259605 --> @bendem commented on GitHub (Mar 15, 2023): bisect: ``` 3533002e3e726fa991038aca347c51d5f208b8c6 is the first bad commit commit 3533002e3e726fa991038aca347c51d5f208b8c6 Author: Jacob Stopak <jacob@initialcommit.io> Date: Tue Feb 28 16:38:57 2023 -0800 Refactor all subcommands to accomodate new diverse branching system Signed-off-by: Jacob Stopak <jacob@initialcommit.io> git_sim/add.py | 3 +- git_sim/branch.py | 2 +- git_sim/cherrypick.py | 4 +- git_sim/commit.py | 3 +- git_sim/git_sim_base_command.py | 146 ++++++++++++++++++++++++------------ git_sim/log.py | 162 ---------------------------------------- git_sim/merge.py | 7 +- git_sim/rebase.py | 7 +- git_sim/reset.py | 9 ++- git_sim/restore.py | 3 +- git_sim/revert.py | 8 +- git_sim/stash.py | 3 +- git_sim/status.py | 3 +- git_sim/tag.py | 2 +- 14 files changed, 127 insertions(+), 235 deletions(-) ```
Author
Owner

@initialcommit-io commented on GitHub (Mar 16, 2023):

@bendem Thanks for reporting this.

I believe this is a regression issue that only happens in repos with less than 5 commits. I had originally fixed this but then overhauled the commit-parsing method, so I think I need to fix it again.

If you test on a repo with more than 5 commits I don't think you'll have this issue. I'll let you know when it's fixed. Let me know if any other questions about it.

<!-- gh-comment-id:1471055137 --> @initialcommit-io commented on GitHub (Mar 16, 2023): @bendem Thanks for reporting this. I believe this is a regression issue that only happens in repos with less than 5 commits. I had originally fixed this but then overhauled the commit-parsing method, so I think I need to fix it again. If you test on a repo with more than 5 commits I don't think you'll have this issue. I'll let you know when it's fixed. Let me know if any other questions about it.
Author
Owner

@initialcommit-io commented on GitHub (Apr 1, 2023):

Just released a fix for this! Please use git-sim version 0.2.9 to take advantage of the fixes. You can upgrade git-sim with: pip install git-sim --upgrade.

I'll close this for now since it's implemented, but please let me know if you have any questions or run into any issues!

<!-- gh-comment-id:1492823238 --> @initialcommit-io commented on GitHub (Apr 1, 2023): Just released a fix for this! Please use git-sim version 0.2.9 to take advantage of the fixes. You can upgrade git-sim with: `pip install git-sim --upgrade`. I'll close this for now since it's implemented, but please let me know if you have any questions or run into any issues!
Author
Owner

@bendem commented on GitHub (Apr 3, 2023):

Perfection! <3

<!-- gh-comment-id:1494948923 --> @bendem commented on GitHub (Apr 3, 2023): Perfection! <3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-sim#48
No description provided.