jaleo
V2EX  ›  Telegram

新版 Telegram 如何调用雅黑字体?

  •  
  •   jaleo · Jul 19, 2021 · 1864 views
    This topic created in 1852 days ago, the information mentioned may be changed or developed.

    最早用的是 winmm.dll 和 TGFont.json 的方案 现在自动升级到最新版 失效了 哪位高手指点下 如何让 telegram 使用雅黑字体?

    2 replies    2021-07-19 16:28:12 +08:00
    mons
        1
    mons  
       Jul 19, 2021
    参见我发在 https://v2ex.ih06.com/t/790283#r_10715070 下的方案供参考,能用微软雅黑。

    理论上可以交一个 PR 让 TG Desktop qtbase 在英文(非中韩日)系统语言下也用简中字体列,但过 review 的希望可能不大(目前默认是日文字体列):

    https://github.com/desktop-app/patches/blob/master/qtbase_5_15_2/0005-fix-cjk-font-fallback.patch#L7

    variable referenced from:

    https://github.com/qt/qtbase/blob/5.15.2/src/platformsupport/fontdatabases/windows/qwindowsfontdatabase.cpp#L1856
    learningman
        2
    learningman  
       Jul 19, 2021 via Android
    用 WebK 呗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2721 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:16 · PVG 13:16 · LAX 22:16 · JFK 01:16
    ♥ Do have faith in what you're doing.