pomax / cff-glyphlet-fonts Goto Github PK
View Code? Open in Web Editor NEWMaking tiny fonts, because making tiny fonts.
Home Page: pomax.github.com/CFF-glyphlet-fonts
Making tiny fonts, because making tiny fonts.
Home Page: pomax.github.com/CFF-glyphlet-fonts
subject says it all.
Hi there, I saw your comment from an announcement of the original Adobe Blank font from years ago. You mentioned:
It might be possible to create a minimal full-unicode font by using format 4 and 12 CMAP entries with full-range segments, both pointing to the non-spacing, non-marking glyph. This would probably give us a legal OpenType font that’s around 1kb. I’ll see if I can play around with that over the weekend. If I can, I’ll put it on github.
Did anything ever come of that? Is that this or one of the other repos here?
right now the code assumes OffSize 1 on a lot of things, which may need changing when real outline paths are added in. I doubt things need to go past OffSize 2, (the whole point is tiny glyphlet fonts), but it'll be good to make sure the bytecode sets itself up correctly
Currently only Firefox seems to accept the GSUB table used in the generated font. Chrome and IE need to accept it too, before this can be considered a correct GSUB table
In order to make the string index smaller, it might be possible to drop strings with a predefined SID, and then refer to lower numbers in the charset.
Hi,
thank for your great A bit of font generation article, it is amazing!
But there is error in downloaded woff font sample. SFNT tables offsets are relatively to TABLE DIRECTORY beginning, while they need to be relatively to WOFF file beginning (see WOFF File Format 1.0)
BTW May I ask one more thing.
Everywhere there is a statement that type2 fonts do allow to use cubic beziers. However, reading Type 2 Chastrings specification I can see charstrings commands for quadratic beziers only. Could you pls, explain
DICTINSTRUCTION(NUMBER(...)) will generate a [[val]] array, instead of [val]
I'm having a discussion on Twitter about your method of replacing custom words with OpenType ligatures. Would it be possible to add the ligature to the original font so that we don't have to wrap the custom word in a dedicated element like <span class="custom">
?
Could you explain how to use your tool to generate custom OpenType data URIs? E.g. I would like to replace the word "foo" with a custom SVG path.
I'm looking at your article and the process of generating the OpenType data URI is placed in the uglified generator.js file, so I'm having trouble figuring out how this works.
Maybe it would make sense to provide an API which would enable generating the data URI, e.g.
var dataURI = generate({
"custom": "M 20 -20 L 20 680 700 680 700 -20 20 -20 M 170 130 L 550 130 550 530 170 530",
"foo": "…",
"bar": "…"
});
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.