GriefDefender/sponge/src/main/resources/com/griefdefender/internal/pagination/font-sizes.json

51 lines
183 KiB
JSON
Raw Normal View History

2019-11-24 23:01:05 +01:00
# To create/update this file: Use the following code (accurate as of MC 1.8), run on the client. The nonUnicode string constant is extracted from FontRenderer -- it's inlined though.
# This must be run while a game is active -- I've stuck this in a command
# ```java
# public void printCharSizes() {
# ConfigurationNode node = SimpleConfigurationNode.root();
# String nonUnicode = "\u00c0\u00c1\u00c2\u00c8\u00ca\u00cb\u00cd\u00d3\u00d4\u00d5\u00da\u00df\u00e3\u00f5\u011f\u0130\u0131\u0152\u0153"
# + "\u015e"
# + "\u015f\u0174"
# + "\u0175\u017e\u0207\u0000\u0000\u0000\u0000\u0000\u0000\u0000 !\"#$%&\'()*+,-./0123456789:;"
# + "<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u0000\u00c7\u00fc\u00e9\u00e2\u00e4\u00e0\u00e5\u00e7\u00ea\u00eb\u00e8\u00ef\u00ee\u00ec\u00c4\u00c5\u00c9\u00e6\u00c6\u00f4\u00f6\u00f2\u00fb\u00f9\u00ff\u00d6\u00dc\u00f8\u00a3\u00d8\u00d7\u0192\u00e1\u00ed\u00f3\u00fa\u00f1\u00d1\u00aa\u00ba\u00bf\u00ae\u00ac\u00bd\u00bc\u00a1\u00ab\u00bb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\u03b2\u0393\u03c0\u03a3\u03c3\u03bc\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u2205\u2208\u2229\u2261\u00b1\u2265\u2264\u2320\u2321\u00f7\u2248\u00b0\u2219\u00b7\u221a\u207f\u00b2\u25a0\u0000";
# List<Integer> nonUnicodeCodePoints = new ArrayList<Integer>(nonUnicode.length());
# for (int i = 0; i < nonUnicode.length(); ++i) {
# nonUnicodeCodePoints.add(nonUnicode.codePointAt(i));
# }
# node.getNode("non-unicode").setValue(nonUnicode);
# int[] charWidths = Minecraft.getMinecraft().getRenderManager().getFontRenderer().charWidth;
# final List<Integer> charWidthsList = new ArrayList<Integer>(charWidths.length);
# for (int i : charWidths) {
# charWidthsList.add(i);
# }
# charWidthsList.set(32, 4); // Space is handled weirdly
# node.getNode("char-widths").setValue(charWidthsList);
# InputStream var1 = null;
#
# final List<Byte> glyphSizezList = new ArrayList<Byte>(65536);
# try {
# var1 = Minecraft.getMinecraft().getResourceManager().getResource(new ResourceLocation("font/glyph_sizes.bin")).getInputStream();
# int b;
# while ((b = var1.read()) != -1) {
# glyphSizezList.add((byte) b);
# }
# } catch (IOException var6) {
# throw new RuntimeException(var6);
# } finally {
# IOUtils.closeQuietly(var1);
# }
# node.getNode("glyph-widths").setValue(glyphSizezList);
#
# try {
# HoconConfigurationLoader.builder()
# .setRenderOptions(ConfigRenderOptions.concise())
# .setFile(new File("font-sizes.conf"))
# .build().save(node);
# } catch (IOException e) {
# logger.error("Unable to write character size information", e);
# }
# }
# ```
{"char-widths":[6,6,6,6,6,6,4,6,6,6,6,6,6,6,6,4,4,6,7,6,6,6,6,6,6,1,1,1,1,1,1,1,4,2,5,6,6,6,6,3,5,5,5,6,2,6,2,6,6,6,6,6,6,6,6,6,6,6,2,2,5,6,5,6,7,6,6,6,6,6,6,6,6,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,4,6,4,6,6,3,6,6,6,6,6,5,6,6,2,6,5,3,6,6,6,6,6,6,6,4,6,6,6,6,6,6,5,2,5,7,6,6,6,6,6,6,6,6,6,6,6,6,4,6,3,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,4,6,6,3,6,6,6,6,6,6,6,7,6,6,6,2,6,6,8,9,9,6,6,6,8,8,6,8,8,8,8,8,6,6,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,6,9,9,9,5,9,9,8,7,7,8,7,8,8,8,7,8,8,7,9,9,6,7,7,7,7,7,9,6,7,8,7,6,6,9,7,6,7,1],"glyph-widths":[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,68,38,22,23,23,23,68,53,36,23,23,52,22,52,22,22,38,22,22,22,22,22,22,22,22,52,52,38,22,21,22,22,22,22,22,22,22,22,22,22,38,23,22,22,22,22,22,22,23,22,22,23,22,23,22,22,23,22,70,22,19,22,23,36,22,22,22,22,22,21,22,22,38,21,22,38,23,22,22,22,22,22,22,21,22,22,23,22,22,22,53,68,36,23,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,68,23,23,22,23,68,22,37,7,38,22,22,15,7,22,36,23,38,38,53,38,22,52,36,36,38,22,22,22,22,22,22,22,22,22,22,22,23,22,22,22,22,22,38,38,38,38,6,22,22,22,22,22,22,22,22,22,22,22,22,23,22,22,22,22,22,22,22,22,23,22,22,22,22,22,38,38,38,38,22,22,22,22,22,22,22,22,22,22,22,22,22,22,38,22,22,22,22,22,23,23,22,22,22,22,22,22,22,22,22,22,6,23,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,7,6,22,22,38,38,22,22,38,38,38,38,22,38,23,22,6,6,22,22,38,22,38,22,38,22,21,6,38,22,22,6,6,22,22,22,22,22,22,22,22,22,23,23,23,23,22,22,6,6,22,22,22,22,22,22,22,22,22,22,23,21,23,21,23,21,22,22,22,22,22,22,22,22,23,23,22,23,22,23,23,22,23,22,22,22,22,22,22,37,6,6,22,22,22,22,22,23,23,6,6,22,22,22,22,22,22,23,21,23,22,22,21,38,22,22,38,22,23,6,22,22,22,22,22,22,23,23,23,22,22,22,21,21,23,21,23,23,23,22,22,23,23,22,22,22,22,22,22,22,22,22,21,22,51,36,21,68,23,23,23,23,23,7,23,23,23,22,22,38,38,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,22,22,22,22,22,22,22,22,22,22,22,23,23,23,22,22,22,22,22,22,22,22,23,23,22,22,6,6,22,22,6,6,22,22,6,6,22,22,6,6,22,22,6,6,22,22,6,6,22,22,22,22,23,21,22,22,22,22,22,23,22,38,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,22,37,23,22,21,6,6,6,6,6,22,23,23,22,22,22,22,6,22,22,6,23,23,23,23,22,22,23,23,22,22,22,22,22,22,23,23,22,22,23,22,22,23,22,23,23,22,22,22,22,22,22,22,38,53,38,22,22,54,23,23,23,23,23,23,22,22,23,23,23,22,22,23,22,22,22,22,22,22,22,21,21,21,22,21,22,23,22,22,22,23,22,23,23,23,22,22,22,22,22,22,22,22,22,23,38,22,22,22,23,22,22,23,23,23,23,23,23,23,39,22,23,22,21,23,38,38,37,38,21,23,21,21,21,36,22,52,52,52,37,37,22,22,37,37,23,23,37,37,68,37,37,37,68,37,37,37,36,36,37,37,21,21,21,21,22,52,37,70,22,23,6,22,21,36,21,21,21,21,21,21,21,21,21,20,21,22,22,21,21,53,53,37,36,22,22,22,52,36,36,36,36,22,22,22,22,22,22,22,22,7,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,22,22,22,22,22,22,22,22,23,22,22,22,22,22,22,7,7,22,22,7,22,7,22,22,22,6,22,22,7,22,22,22,22,22,22,22,22,22,22,22,22,22,23,22,15,22,22,22,22,22,22,7,22,22,22,22,22,7,7,7,7,7,7,7,22,22,22,22,22,22,22,22,6,22,22,22,22,21,22,6,21,37,37,22,6,0,0,52,22,22,22,52,0,0,0,0,0,51,21,22,53,22,22,22,0,22,0,23,23,21,22,22,22,23,22,22,22,22,38,22,23,22,22,22,22,23,22,0,22,23,23,23,22,23,23,38,23,22,22,22,53,22,22,22,23,22,22,38,22,22,53,38,22,22,22,22,22,22,22,22,23,22,22,23,22,23,23,37,22,22,22,23,22,22,23,23,23,23,23,23,23,22,22,22,22,22,38,22,21,22,21,7,23,22,38,22,22,22,22,7,22,22,22,23,23,22,22,22,38,22,21,21,22,22,22,22,23,22,22,22,22,22,22,23,22,22,22,38,38,22,7,23,23,22,22,23,23,22,22,22,22,7,22,23,22,22,22,22,22,22,22,22,22,22,22,23,23,23,22,23,22,23,7,23,22,22,22,22,22,22,22,22,22,23,22,23,22,22,22,22,22,22,22,22,22,22,22,23,22,23,22,23,22,23,7,23,22,22,22,22,22,22,22,22,22,22,22,38,38,21,7,23,22,22,22,22,38,23,23,23,22,23,23,23,23,23,23,23,23,23,23,22,22,23,23,22,22,23,22,23,23,23,23,23,23,23,23,23,23,22,22,23,22,6,22,22,7,13,30,23,23,22,22,22,22,22,22,23,23,22,22,23,23,22,22,22,22,23,23,23,23,7,7,23,23,23,23,23,23,22,22,22,22,23,23,23,38,23,38,23,23,7,7,23,23,22,22,