beeware/toga

Add testing of a "true" variant font

開放

#4,480 建立於 2026年6月18日

 (4 則留言) (0 個反應) (0 位負責人)Python (624 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (3,615 顆星)
PR 合併指標
 (平均合併 5天) (30 天內合併 64 個 PR)

描述

What is the problem or limitation you are having?

As noted in #2159, the Endor font doesn't contain a "true" bold or italic, resulting in rendering on iOS and macOS that looks

This contrasts with GTK and Windows, which apply "fake" bold and italic:

Describe the solution you'd like

  • Add to the fonts example app an example of a "true" variant font. Recursive has been suggested as a candidate.
  • Add a tests to the testbed canvas test that performs an automated test of what the fonts example is rendering. Add one test for each font (i.e. render an image that renders text as normal, bold, italic and bold-italic for each font).

Describe alternatives you've considered

Don't explicitly test variant fonts.

Additional context

No response

貢獻者指南