Preface: This article aims at the complete Unicode dot matrix font library (other font library calculation methods are different)
solution: part of the dot matrix font library does not meet the business requirements and needs to be changed again (not the whole font library)
note: the two software used in this article are provided with download link at the back!
Steps:
1. Get the Unicode code of the character to be modified
(example: á Unicode code 0x00e1)
2. Calculate the position of characters in binary file;
Calculation formula: index = number of bytes occupied by Unicode * characters (need to be converted to decimal and then converted to hexadecimal)
In this example, (0x00e1) converts 225225 * 24 (bytes occupied by characters in the font) = 5400 to hexadecimal
1518)
3. According to the calculated position, find the corresponding data (24 consecutive bits after the position (12 * 2)):
As shown in the picture
The red box is the data of this character in the font,
4. Get the desired character lattice data
5. Replace the original data, complete the
Software resources:
Hex Editor Neo download address: https://www.xp510.com/xiazai/Application/program/20476.html
Download address of font 3: CSDN
Download
above! thank you!
Read More:
- The sparse matrix of R language is too large to be used as.matrix
- PySpark ERROR Shell: Failed to locate the winutils binary in the hadoop binary path
- Memory error in Python numpy matrix
- CSS Failed to decode downloaded font, OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
- Configuring glfw library and glad Library in opengl-vs2015
- Error in installing torch vision or pilot on Linux or Jetson nano: the headers or library files could not be found for JPEG
- About adding legacy to linker additional dependencies_ stdio_ definitions.lib Solve the problem of incomplete standard library files
- Bash modifies the file names in the specified folder through MAC terminal (batch modification)
- New fields in hive table and modification of field comments
- The too many open files solution appears in stream classes such as files.list
- Authentication token manipulation error appears in ubuntu18.04 password modification
- Matlab matrix transpose function
- Python memoryerror (initializing a large matrix)
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library
- [Solved] Error in registering Eureka for spring cloud micro service: classnotfoundexception: org.apache.http.conn.scheme.schemeregistry
- Typeerror: write() argument must be STR, not bytes and the method of writing binary file in Python 3
- Typeerror: write() argument must be STR, not bytes and the method of writing binary file in Python 3
- “Sh: dot: not found” when Doxygen generates documents
- Off line data storage and upload scheme
- Vscode compiles multiple files, compiles files in subfolders