Open rsheeter opened 10 months ago
cc @simoncozens @m4rc1e
Noto Color Emoji is not my font, you may want to try @rsheeter. ;-)
He is the one who posted the issue
@rsheeter Do you have additional details on the fails that you encountered on the parse attempts?
ofl/wixmadefortext/METADATA.pb fails because it has the field "position" which I believe exists in the internal family proto file but not in the public version
Likewise ofl/notocoloremoji/METADATA.pb fails because it has an additional field which we do not have, ordered_sample_glyphs
@rsheeter can we close this issue?
I don't think it's been fixed?
The fix is either to synchronise the gftools proto definitions with your internal ones, or to use the allow_unknown_field=True
option when calling text_format.Parse
.
The former is preferable. I thought we did that recently but perhaps it's a figment of my imagination.
ofl/wixmadefortext/METADATA.pb fails because it has the field "position"
That one is fascinating because the internal copy of fonts_public.proto doesn't have it either.
Likewise ofl/notocoloremoji/METADATA.pb fails because it has an additional field which we do not have, ordered_sample_glyphs
I see ordered_sample_glyphs
in https://github.com/googlefonts/gftools/blob/main/Lib/gftools/fonts_public.proto
ofl/pushster/METADATA.pb is a legitimate missing field.
ofl/wixmadefortext/METADATA.pb fails because it has the field "position"
That one is fascinating because the internal copy of fonts_public.proto doesn't have it either.
@rsheeter I've just forwarded you an email regarding this field.
@m4rc1e status here?
@m4rc1e @rsheeter what's the status here?
Currently, the position
field, which is used in WixMadeFor Text, doesn't exist in our METADATA.pb files. I was told to include this field so it could allow us to support an unhinted variable font + statics that have been hinted with VTT. I've asked for this field to be added to our external protobuf files a few times in the fonts+oncall group (search for "wix madefor position")
I've asked for this field to be added to our external protobuf files a few times in the fonts+oncall group (search for "wix madefor position")
Who did you ask?
Will followup internally. I believe that field was originally meant to be internal only so we're in a weird spot.
Attempting to parse METADATA.pb using
fonts_public_pb2.FamilyProto()
from gftools, as shown in https://github.com/rsheeter/google_fonts_sources/pull/4, fails to parse some files: