kingToolbox / kingToolbox/WindTerm

[Bug] Incorrect terminal auto font size on KDE Plasma 5.

Open
#1,652 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

For reference,

![image](https://user-images.githubusercontent.com/42837531/235791035-62a2ac36-9140-481f-b989-de9a99ec8cc4.png)

depicts my actual font configuration, and its GUI depicts how the text should be rendered.

`WindTerm` uses pixels rather than points. https://pixelsconverter.com/pt-to-px demonstrates that 10 pt should approximately equate to 13 px

> ![10 = 13.333333333333332](https://user-images.githubusercontent.com/42837531/235791253-1bb9ce3f-2d85-48b0-9892-36b3aab7bacf.png)

but this isn't what occurs:

# `WindTerm`

## 10 pixels

![image](https://user-images.githubusercontent.com/42837531/235800582-10022058-d15d-4188-8c7f-82c1032e0263.png)

![image](https://user-images.githubusercontent.com/42837531/235790952-4a59ed43-be02-4b0d-b995-2efe2bdbd0dd.png)

## Default theme fonts

![image](https://user-images.githubusercontent.com/42837531/235800388-3e26dd37-bfc0-484e-9c2a-b8ff0af45909.png)

![image](https://user-images.githubusercontent.com/42837531/235800559-d2db001e-8b83-44a2-a552-c3c4dd03bd44.png)

## 13 pixels

![image](https://user-images.githubusercontent.com/42837531/235801369-f99449da-4dcb-4610-a5f7-3a8801327d2f.png)

![image](https://user-images.githubusercontent.com/42837531/235790990-c4926256-c96f-4a34-b437-6b7d7f1a6815.png)

Because the Default theme fonts preference appears to set the font to 13 pixels as it should, yet the font appears much too large, there appears to a font size determination error. This might be because `WindTerm` appears to actually use pt rather than px, since 10 pt looks directly equivalent to 10 px.

---

I'm using https://github.com/kingToolbox/WindTerm/releases/download/2.5.0/WindTerm_2.5.0_Linux_Portable_x86_64.tar.gz.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the font-size behavior in the WindTerm 2.5.0 Linux portable release on KDE Plasma 5, using the reported 10 pt and 13 px comparisons. Compare the rendered terminal and default-theme fonts with the KDE configuration; the fix is complete when automatic sizing matches the configured font size and the reported discrepancy is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.