Comments (8)
I would like to treat 32 bit gids as a standalone thing - ideally forming a group for it, filed w3c/font-text-cg#8 - rather than scattering issues like this all over the place. Accordingly, I propose to close this (again).
from colr-gradients-spec.
- building in forward compatibility to a future in which fonts can have > 64K glyphs?
Yes, this was my intention.
- keeping 4-byte-integral structures?
That's a non-issue to me since everyone has to support unaligned anyway.
Note that this adds at least 6 bytes of padding to every colour glyph. For an emoji font, that will be an additional 12K to 20K (or more?) of padding.
Right. But will definitely be a tiny bit of the font size, so I'm happy to "waste" that. Compression takes care of it for any download situations as always.
from colr-gradients-spec.
We care about the size at rest (e.g. in a system image) as well as the transfer size. I suggest we use uint16
. If/when we are ready to introduce 32-bit gids we should make that as a global or spec wide change, perhaps introducing COLRv2 which is just v1 with a 4-byte offset.
from colr-gradients-spec.
I agree with Rod, it feels odd to have 32-bit GlyphIDs only in COLRv1. We can always change it later and bump COLR table version.
from colr-gradients-spec.
I propose to close this issue and pickup 32 bit gids and offsets as a standalone project, likely a W3C WG spawned from the shiny new CG. I imagine the end result of that is COLR gains the ability to support 16 or 32 bit gids, compiler can choose as appropriate for the specific font. @behdad would that work for you?
from colr-gradients-spec.
Definitely works for me, yes. Just be more code and spec to maintain. Go ahead and close though.
from colr-gradients-spec.
Reopening and filing under the "COLRv2" milestone
Also, I note that making GIDs 32-bit compatible before glyf
et al are updated, was already done in CFF2, per https://lists.aau.at/pipermail/mpeg-otspec/2020-September/002369.html
from colr-gradients-spec.
Relevant crosslink: MPEGGroup/OpenFontFormat#10
from colr-gradients-spec.
Related Issues (20)
- figures have old struct names with "V1" HOT 1
- Distinguish ItemVariationStore formats (add format 1) due to change to wordDeltaCount field HOT 12
- Saturation requires unwanted overhead HOT 8
- Make DeltaSetIndexMap consistent x-spec HOT 3
- Clipbox was built futureproof, make it future friendly HOT 3
- CPAL can't reference foreground color HOT 2
- CPAL variation HOT 9
- Pseudocode for vectorization? HOT 3
- Partial contour reference
- (deleted) HOT 1
- Thoughts on blending HOT 7
- Clarifications for Sweep gradients needed HOT 7
- Support compositing-2, esp plus-lighter HOT 2
- COLRv1 capabilities vs. SVG 1.1
- Radial gradients and negative radii with variations or non-normal color stops HOT 74
- Optimize PAINT_COMPOSITE painting algorithm HOT 17
- [COLRv2] Proposal: Reusing layers with the "self GID" HOT 19
- [COLRv2] Paint templates HOT 7
- COLRv2 laundry list HOT 1
- [COLRv2] Smoother gradients HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colr-gradients-spec.