Giter Club home page Giter Club logo

mcunicode's Introduction

MCunicode字体放缩

GitHub license standard-readme compliant

将我的世界的unicode字体格式转化为bitmap格式,并且进行放缩的资源包

内容列表

背景

我们都知道bitmap和ttf都是可以用height和ascent控制高度和偏移的

如果想要更大的英文字体什么的只需要改这两个参数就行,非常简单

但中文不行,中文在unicode里,而unicode是没有这两个参数的

稍微翻一翻原版资源包就会发现,mc的unicode也是bitmap,甚至和其它bitmap的图片放在一起

所以咱们把legacy_unicode用一堆bitmap替换掉,应该也能显示出来

写脚本替换即可

安装

这玩意不需要安装)

点击这里下载源代码

然后解压到资源包文件夹就行了

使用

例如'{"text":"这是一段文本","font":"size:2x"}'

就能输出放大至2倍的文本

默认提供的范围只有1.16的2,3,4,5,6,7,8,9,16,24,32的放大,否则请自己拓展

最简单直接的方式就是打开资源包,assets\size\font\下

随便复制一份

改成你想改的名字,然后把所有的height和ascent都替换了

否则,确保你安装了python

  • 仅放缩字体

运行newsize.py

  • 放缩并设置偏移

运行newsize_s.py

生成器

本资源包只准备了1.16的unicode图片

但是也可以使用其它同样格式的图片

替换/textures/font和/textures/font_plus,然后重新生成即可

运行high_png.py可以将/font_plus/下的字体高度变为256格以适应向上偏移,如果要使用newsize_s.py并且载入高度为256的图片,请确保/font_plus/下的图片是处理过的

维护者

@sch246

使用许可

MIT

mcunicode's People

Contributors

sch246 avatar

Stargazers

Sloane avatar

Watchers

 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.