チケット #44906

Qt: Wrong font (size) on current production widget

登録: 2022-06-22 20:11 最終更新: 2022-07-07 23:46

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
2

詳細

Even with #44389 patch applied, ddeanbrown reports that the font is not right:

"Applying the patch did not have any affect."

That's on MacOS, where Qt often seems to have behavior different from other platforms (not only bugs - there's even documented differences)

チケットの履歴 (12 件中 3 件表示)

2022-06-22 20:11 更新者: cazfi
  • 新しいチケット "Qt: Wrong font (size) on current production widget" が作成されました
2022-06-26 00:31 更新者: cazfi
コメント

Attached patch that would produce some logging for debugging purposes - not meant to ever become part of freeciv distribution. For S3_0.

It would be great if ddeanbrown or someone else able to reproduce the problem could get the logs from a run with this patch applied. Launch the client, Start a New Game, W)ait with all the other units until Settlers activate, and then build a city with it (to get a city dialog opened), close the client.

2022-06-26 00:39 更新者: cazfi
コメント

Example output of what I got with 'gui_qt_font_default="Liberation Sans,15,-1,5,50,0,0,0,0,0"' in ~/.freeciv/freeciv-client-rc-3.0

---

Running ./client/freeciv-qt
Encodings: Data=UTF-8, Local=UTF-8, Internal=UTF-8
2: gui_qt_font_default : Liberation Sans,15,-1,5,50,0,0,0,0,0.
2: gui_qt_font_chatline : Liberation Mono,13,-1,5,50,0,0,0,0,0.
2: gui_qt_font_city_names : Liberation Sans,11,-1,5,75,0,0,0,0,0.
2: gui_qt_font_city_productions : Noto Sans,13,-1,5,75,0,0,0,0,0.
2: gui_qt_font_reqtree_text : Noto Sans,15,-1,5,75,0,0,0,0,0.
2: App default after change callbacks : Liberation Sans,15,-1,5,50,0,0,0,0,0.
2: Loading tileset "hexemplio".
2: Loading tileset "hexemplio".
2: Drawing font for progress bar : Liberation Sans,15,-1,5,50,0,0,0,0,0.
2: Production combo itself : Liberation Sans,15,-1,5,50,0,0,0,0,0.
2: Production combo uses : Liberation Sans,15,-1,5,50,0,0,0,0,0.
2: Progress bar painter : Liberation Sans,15,-1,5,75,0,0,0,0,0.
2: last message repeated 2 times

2022-06-26 04:38 更新者: ddeanbrown
コメント
(このコメントは削除されました)
2022-06-26 04:42 更新者: ddeanbrown
コメント

Here's log from my Mac with the patch -


Could not create pixmap from /Applications/freeciv.app/Contents/share/freeciv/themes/gui-qt/Classic/pattern-game.jpg
2: gui_qt_font_default : Arial,14,-1,5,50,0,0,0,0,0,Regular.
2: gui_qt_font_chatline : .AppleSystemUIFont,10,-1,5,50,0,0,0,0,0,Regular.
2: gui_qt_font_city_names : Gill Sans,18,-1,5,50,0,0,0,0,0,Regular.
2: gui_qt_font_city_productions : Sans Serif,10,-1,5,50,1,0,0,0,0,Regular.
2: gui_qt_font_reqtree_text : Sans Serif,10,-1,5,50,1,0,0,0,0,Regular.
2: App default after change callbacks : Arial,14,-1,5,50,0,0,0,0,0,Regular.
2: Loading tileset "hexemplio".
2: Loading tileset "amplio2".
2: Drawing font for progress bar : Arial,14,-1,5,50,0,0,0,0,0,Regular.
2: Production combo itself : Arial,14,-1,5,50,0,0,0,0,0,Regular.
2: Production combo uses : Arial,14,-1,5,50,0,0,0,0,0,Regular.
2: Progress bar painter : Arial,14,-1,5,75,0,0,0,0,0,Regular.
2: Painter adjusted : Arial,8,-1,5,75,0,0,0,0,0,Regular.
2: Progress bar painter : Arial,8,-1,5,75,0,0,0,0,0,Regular.
2: last message repeated 2 times
2: last message repeated 2 times (total 4 repeats)

2022-06-26 04:45 更新者: cazfi
コメント

Reply To ddeanbrown

2: gui_qt_font_default : Arial,14,-1,5,50,0,0,0,0,0,Regular.

...

2: Progress bar painter : Arial,14,-1,5,75,0,0,0,0,0,Regular. 2: Painter adjusted : Arial,8,-1,5,75,0,0,0,0,0,Regular.

So, it's the adjustment done for the painter that makes the font smaller (14 -> 8). I already were looking at it for another problem in it.

2022-06-26 05:57 更新者: cazfi
コメント

Reply To cazfi

I already were looking at it for another problem in it.

Patch attached. See the commit message on top of it for details. It should make the adjustment to work more "right", but there's no guarantee that even right adjustment would be working well.

2022-06-26 13:11 更新者: ddeanbrown
コメント

New patch produces much better appearance. Still see the bug #44850 but that's a separate issue.

2022-07-05 00:16 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から 3.0.3 (完了済み) に更新されました
2022-07-07 23:46 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

添付ファイルリスト

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする