your current location:首页 > news>Qin Shihuang also play MC?Custom font tutorial [MC] Minecraft Game

Qin Shihuang also play MC?Custom font tutorial [MC] Minecraft Game

2024-12-05 23:05:38|Myriagame |source:minecraft skins

Foreword

This is a customized font column. The effect of this tutorial is based on the original resource package, but only two files are involved, and you only need to operate to modify one of the 5 data in one of the JSON files., Then drag another file to the specified position.This is more concise than the previous integration package tutorial, so you can operate with confidence.

In fact, I originally wanted to put it in the integrated package tutorial, but when I did this, I had to laugh to death.

Cover font: Hanyi Zhihao Tiangong Fang Font free download and online preview-fonts.net.cn (fonts.net.cn).Do not easily publish your font resource package, follow the agreement of the font authors.

Production resource package

Here you can use the folder without compressing packages here (which can be recognized by name and ID card), and then adjust the resource package after JSON.

Old rules, put a pack.mcmeta as an ID, then create the ASSETS folder, create a MINECRAFT folder in Assets, create a FONT folder in Minecraft, create a JSON file in the Font folder, named Default.json.

Then open it, enter these 5 contents in it:

 {{

"PROVIDERS": [[

{{

"Type": "TTF",

"File": "Minecraft: zhuan.ttf",

"Oversample": 20, 20,

"Size": 18,

"Shift": [0, -1]

}

]

}

file

The path of your font file, I just place it directly next to the default and name it zhuan.ttf without adding other information.

oversample/size

Oversample is the resolution of the font, and Zize is the size of the font. These two must be dynamically adjusted in the game, because the font is too small, it is too large, the resolution is too low, the resolution is too high, the resolution will change too high, the resolution is too high, it will change if it is too highFrame, like this:

Of course, except these two symbols are basically normal, I will not continue to adjust, and I will be confused again.

shift

The offset during rendering is generally consistent with the original position when the size of the font is default 11, but when you adjust the size, the font will be offset, then you need to adjust the position at this time.Including two numbers, the first one is the left offset and moves to the right when it is less than zero;These two numbers default to 0. If you just tone a pixel just after you finish the size, then you can set a pixel to the top of -1 like the above.

Font file file

Finally, this .ttf file is the core of the font. No matter where you look for it, as long as you can find a file with a suffix .TTF.There are actually many such content on the Internet, such as here.If you particularly like a certain game, search for.ttf in the folder stored in the game can also adjust the font of the game.

Of course, friends who have played mobile phone fonts know that in fact, the font of the mobile phone is also the same. As long as the font file does not write a certain font, then this word is absolutely impossible to appear, and it will be directly replaced with the mobile phone default.Unicode fonts, the same is true for computers, so how to solve this problem?It is very simple. We are playing a game that can change the game text. Use a resource package to replace the Chinese name. Replace the words that fail to appear with other characters. You do n’t want to use your brain to use the space directly.Technical knowledge

In fact, the above Type accepted a total of 5 values.

bitmap

The bitmap is equivalent to a dictionary, which will be checked in this dictionary when loading the glyph.The original font uses this method for rendering.In addition, this method can be used to load emoticons (but only white characters can be displayed normally).

TTF

TureType vector -shaped supporter will bake into a bitmap when rendering.

reference

Quote fonts in other locations.For example, I used several JSON loading drawings, but I didn't want to put them together, then I could use Reference to adjust the JSON in other positions.

space

Pure space.You can customize the space to be a few pixel width.

unihex

GNU Unifont hexadecimal font glyph provider.