ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.4k stars 2.18k forks source link

[BUG]: Khmer language font displays bold on cards #16832

Closed jaredratcliff closed 3 weeks ago

jaredratcliff commented 1 month ago

Checked for duplicates?

Does it also happen in the desktop version?

What are the steps to reproduce this bug?

All Khmer characters on cards, regardless of card type, show bold characters. This only happens on cards; in the editor, or elsewhere in the app, Khmer characters appear normally. This issue appeared recently.

Screenshot_20240805-221619 Screenshot_20240805-221614

Expected behaviour

Khmer characters should appear normally on cards, like they do elsewhere in the app.

Actual behaviour

Khmer characters appear bold on cards, almost artificially in a way that makes them difficult to read.

Debug info

AnkiDroid Version = 2.18.4 (f867da96b8304edaebd0361326316bc7514f8cde)

Backend Version = 0.1.38-anki24.04.1 (24.04.1 ccd9ca1a8309b80bcb50ddc5d99c7ce63440bce9)

Android Version = 14 (SDK 34)

ProductFlavor = play

Manufacturer = Google

Model = Pixel 7

Hardware = panther

Webview User Agent = Mozilla/5.0 (Linux; Android 14; Pixel 7 Build/AP2A.240705.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/127.0.6533.64 Mobile Safari/537.36

ACRA UUID = 83341ee9-7e76-4a75-adf0-23dc725e39a6

FSRS Enabled = false

Crash Reports Enabled = true

(Optional) Anything else you want to share?

No response

Research

welcome[bot] commented 1 month ago

Hello! ๐Ÿ‘‹ Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

david-allison commented 1 month ago

Is this just with the Previewer, or also in the Reviewer?

jaredratcliff commented 1 month ago

Is this just with the Previewer, or also in the Reviewer?

Also the reviewer. Screenshot_20240807-052205

david-allison commented 1 month ago

Looks like a phone/card template problem. Screenshot: แž‘แžนแž€แžŠแŸ„แŸ‡แž‚แŸ„ on API 30

Screenshot 2024-08-07 at 13 52 24

Are you able to get the card working in chrome://inspect: https://github.com/ankidroid/Anki-Android/wiki/Development-Guide#html-javascript-inspection

From here, you can see where the font comes from

brishtibheja commented 1 month ago

Relevant: forums.ankiweb.net

david-allison commented 3 weeks ago

Thanks!

Moved & resolved on Anki Forums

https://forums.ankiweb.net/t/khmer-text-is-bold/46422