asvel / monoback Goto Github PK
View Code? Open in Web Editor NEWGenerate aligned CJK fallback font for your favorite monospaced font.
License: MIT License
Generate aligned CJK fallback font for your favorite monospaced font.
License: MIT License
方便在一些难以设置fallback字体的场景应用
The glyph outlines in an OpenType font may be defined in two formats, TrueType or Compact Font Format (CFF), the latter is not supported by this tool, there are two major reasons:
hmtx
table (Horizontal Metrics Table, which specified glyph width and side bearing) for CFF outlines font, because CFF data also contains relevant values and takes higher priority.
defaultWidthX
values inside CFF data and hardcoding side bearing into glyphs.OS/2.panose.bProportion
is ignored, post.isFixedPitch
has no effect, even hdmx
feature won't help.
Furthermore, I could not find any CFF outlines font aligned correctly under every environment, for a test case, neither Source Han Mono nor Source Han Code JP aligned correctly in WebStorm 2022.2.1(#WS-222.3739.57) under Windows 10 21H2(19044.1889).
PS: If you are trying to fallback to Source Han Sans, there are several third-party TrueType outlines editions such as Source-Han-TrueType and source-han-sans-ttf.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.