CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/ext/native/tools/README.txt
Views: 1401
These are simple tools to create the ZIM texture format and texture atlases based on it.12atlastool <configuration_file> <filename_prefix> <format>34<configuration_file> path to the configuration file for the atlas to be generated5description of the format is below67<filename_prefix> the prefix of the output files, the output files will be:8<filename_prefix>_atlas.zim9<filename_prefix>_atlas.cpp10<filename_prefix>_atlas.h1112<format> texture format of the atlas, can be:138888 - RGBA814etc1 - ETC1 compressed15<none> - uses RGBA44441617Basic configuration file format look like this:1819<size>20font <fontname> <fontpath> <glyphregions> <height> [<vertical offset>]21image <symbolname> <imagepath> <action>2223All the blocks enclosed with "<" ">" need to be replaced with the respective options, for24example one line in one of out configuration files is:2526font UBUNTU24 C:/Windows/Fonts/KozGoPro-Medium.otf UWkhcsGR 242728<size> size is the horizontal size of the atlas, should be a power of 2, the vertical size is29automatically adjusted to be smallest power of 2 that can fit the whole atlas.3031<fontname> the name of the font in the generated *.h and *.cpp files3233<fontpath> path to the font, can use *.otf and *.ttf fonts3435<glyphregions> defines which glyphs should be copied into the atlas, can use any combination36of the following:37U - US ASCII38W - Latin-1 extras 139E - Latin-1 Extended A (needed for Hungarian etc)40e - Latin-1 Extended B (for some African and latinized asian languages?)41k - Katakana42h - Hiragana43s - ShiftJIS symbols44H - Hebrew45G - Greek46R - Russian47c - All Kanji, filtered though!48T - Thai49K - Korean (hangul)5051<height> height in pixels of the glyphs in the font atlas5253<vertical offset> ??? no idea5455<symbolname> name of this symbol in the generated *.h and *.cpp files5657<imagepath> path to the image file that is going to be used5859<action> can be any of:60copy - copies the image as-is61r2a - red2alpha, red channel to alpha, color is a solid while62r2i - red to intensity, full alpha63pre - premultiply alpha64p2a - pink (255,0,255) to alpha656667