Giter Club home page Giter Club logo

tgfont's Introduction

TGFont

繁体中文

修改 Telegram desktop Windows 版字体的简单的 hook 工具. (理论上也支持别的软件)

使用方法

下载 TGFont.dll 并重命名为 winmm.dll. 然后放在 Telegram 的文件夹里.

用户字体: 把字体文件放在 fonts 文件夹内, 可以直接使用, 无需安装到系统中.

配置文件

初次运行时会创建 TGFont.json. 配置文件使用 UTF-8 编码. 支持 UTF-8 BOM.

{
    "fonts": {
        "SimSun": {
            "replace": "Microsoft YaHei UI",
            "#size": 0,
            "#width": 0,
            "#weight": 0,
            "#italic": false,
            "#underLine": false,
            "#strikeOut": false,
            "#charSet": 0,
            "#outPrecision": 0,
            "#clipPrecision": 0,
            "#quality": 0,
            "#pitchAndFamily": 0
        }
    },
    "debug": false
}

key ("SimSun"): 要修改的字体名称.

replace: 要替换成的字体名称.

size width weight italic underLine strikeOut charSet outPrecision clipPrecision quality pitchAndFamily: 覆盖原始字体样式. 请参见 MSDN 文档. 如果不想覆盖的话请把这些项删除或者改名.

debug: 调试模式 (会记录 LoadUserFonts 及 CreateFont 调用到 TGFont.log).

如果只想替换中文字体,保留英文字体不变,你需要将 "key" 设为中文的 fallback 字体。这个字体在不同语言环境下可能不一样 (比如简体中文是 SimSun),你需要使用 debug 模式找到对应的字体。

Thanks

感谢宣传此项目的朋友!

RapidJSON

tgfont's People

Contributors

ysc3839 avatar

Watchers

James Cloos avatar vertexzzz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.