Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 19:24
    behdad commented #2958
  • 19:06
    behdad synchronize #2958
  • 19:06

    behdad on varc

    [VarComposite] Adjust for RESET… (compare)

  • 18:22
    behdad synchronize #2958
  • 18:22

    behdad on varc

    [VarComposite] Magic-number hyg… (compare)

  • 18:21
    behdad synchronize #2958
  • 18:21

    behdad on varc

    [VarComposite] Magic-number hyg… (compare)

  • 18:09
    behdad synchronize #2958
  • 18:09

    behdad on varc

    [glyf/VarComposite] Implement p… Move VarComposite roundtrip tes… (compare)

  • 17:38
    behdad commented #2958
  • 17:36
    behdad synchronize #2958
  • 17:36

    behdad on varc

    [VarComposite] Add message to e… (compare)

  • 16:34

    anthrotype on main

    Ensure sbix's Glyph.referenceGl… Merge pull request #2984 from P… (compare)

  • 16:34
    anthrotype closed #2984
  • 16:06

    anthrotype on pyup-scheduled-update-2023-01-30

    (compare)

  • 16:06
    pyup-bot closed #2975
  • 16:06
    pyup-bot commented #2975
  • 16:06
    pyup-bot opened #2985
  • 16:06

    anthrotype on pyup-scheduled-update-2023-02-06

    Update uharfbuzz from 0.32.0 to… (compare)

  • 16:06

    anthrotype on pyup-scheduled-update-2023-02-06

    Update pyobjc from 9.0 to 9.0.1 (compare)

anthrotype
@anthrotype:matrix.org
[m]
you may as well try and see if it works, if you know how to. I don't
一丝
@yisibl
Well, I want to know about COLRv0 first. After all, this is a mature one.
anthrotype
@anthrotype:matrix.org
[m]
I never built an android app so I would not know how to embed a font in it. If you do know, you can try and check if it works.
or check again later, I asked a colleague in california but they are sleeping right now
一丝
@yisibl
We have an older document(https://www.iconfont.cn/help/detail?helptype=code), but I have never developed an Android client 😂🤣.
一丝
@yisibl
http://variableemojis.com/ Interesting demo.
一丝
@yisibl
@anthrotype:matrix.org Does your colleague have a reply yet?
anthrotype
@anthrotype:matrix.org
[m]
I asked a couple people, both were not sure, they said it should be supported but they would not know offhand
you'd better try out yourself
一丝
@yisibl
Okay, thanks.
The bad news, Apple may not support COLRv1 in a short time
To be honest, their own support for svg in ot is also terrible.
一丝
@yisibl
Not supporting <use> increases the font file size and also increases the development cost of open source tools. googlefonts/nanoemoji#266
n8willis
@n8willis
Does anyone have any recommendations for examples/docs/discussion for practical work on T1 fonts directly in FontTools?
(for context, this is me with working code for ttLib wanting to avoid the need to cycle type-1 fonts through makeotf solely to make them readable. On the plus side, all I do with them is read them; I don't need to build any type-1 binaries...)
n8willis
@n8willis
🥇
Cool; thanks!
Font stuff would sure be a lot easier without all the corner cases.
(I dunno if anyone else has noticed that.)
madigens
@madigens:matrix.org
[m]
we should rewrite fonts in rust
moyogo
@moyogo:matrix.org
[m]
fonts themselves, lol
anthrotype
@anthrotype:matrix.org
[m]
🚀
一丝
@yisibl
image.png
🚀🚀🚀
madigens
@madigens:matrix.org
[m]
yes, it's impressive! haven't had a chance to dig into it yet though
一丝
@yisibl
image.png
n8willis
@n8willis
I've been trying to add a Subsetter() to some code and it's raising a weird TypeError that I can't figure out the reason for....
specifically, it's in unicodes_missing, where it tries to log a missing unicode val, it's tripping up with TypeError: %X format: an integer is required, not str
I'm populating the Subsetter with a unicodes=[] list. That seems like pretty basic stuff, so I'm obviously not seeing what's wrong for some simple. Any clearer eyes out there?
n8willis
@n8willis
(Anyway, for anybody who stumbles across this late at night, the origin of the approach I used was this SO question, specifically mark2mark's answer: https://stackoverflow.com/questions/55009981/how-to-use-pyftsubset-of-fonttools-inside-of-the-python-environment-not-from-th )
passing a list of glyphs works as expected, but it seems like something different is necessary for the populate to get unicodes
anthrotype
@anthrotype:matrix.org
[m]
unicodes parameter wants a list of integers
instead of passing subset.populate(unicodes=["U+0041", "U+0042", ...]), you should pass instead the decimal integer value for those hexadecimal unicode codepoints
just strip the leading "U+" and pass the rest to int(..., 16)
hexadecimal is base 16 ;)
Cosimo Lupo
@anthrotype
something like subset.populate(unicodes=[int(u.lstrip("U+", 16) for u in ["U+0041", "U+0042", ...]])
n8willis
@n8willis
OK
should parse_unicodes() produce the right format?
because I also tried passing the ranges of interest through that & got the same error.
although those could be two separate issues
David Corbett
@dscorbett
How should I set sTypoAscender and sTypoDescender in a 1000-unit-per-em font such that ascenders of around 1000 units and descenders of around 1250 units do not overlap adjacent lines in HTML with the CSS declaration line-height: 1? The seemingly obvious solution of setting them to 1000 and -1250 does not work: the lines still overlap and the first line is too high within the containing box.
madigens
@madigens:matrix.org
[m]
my feeling is that the answer depends on the browser 😬
also remember the usetypometrics flag somewhere (head?)
accia
@ACCia
Why, use fontbuilder_ test.py test example generates font file, which is not a valid font in windows
n8willis
@n8willis
What's the fastest way to clip TTGlyphs? Like, just slice off everything above some Y val, and still have closed contours?
I'm looking at booleanOperations and skia-pathops, but most of the example code I find is from people working on defcon or glyphs-source objects, not operating directly on TTGlyphs...