GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Noel Berry (noelfb@mastodon.social)'s status on Thursday, 16-Nov-2023 04:09:00 JST Noel Berry Noel Berry

    I've been using MSDF fonts for a little bit, (https://github.com/Chlumsky/msdfgen) but have been running into issues where a lot of fonts don't render right. Finally figured out that it doesn't play well with contours that intersect themselves... I looked into how the msdfgen cli resolves it and they convert the shapes to google's Skia and back, which "fixes" all the intersects lol

    In conversation Thursday, 16-Nov-2023 04:09:00 JST from mastodon.social permalink

    Attachments


    1. https://files.mastodon.social/media_attachments/files/111/412/488/443/090/103/original/c9859378e341ceae.png
    2. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
      GitHub - Chlumsky/msdfgen: Multi-channel signed distance field generator
      Multi-channel signed distance field generator. Contribute to Chlumsky/msdfgen development by creating an account on GitHub.
    • Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Noel Berry (noelfb@mastodon.social)'s status on Thursday, 16-Nov-2023 04:09:53 JST Noel Berry Noel Berry
      in reply to

      so at this point I think I either 1) try to solve intersecting shapes, 2) use msdfgen's offline cli renderer instead of doing this in real time, or 3) just go back to good old stb_truetype and render out fonts at specific sizes :D

      In conversation Thursday, 16-Nov-2023 04:09:53 JST permalink
      Haelwenn /элвэн/ :triskell: repeated this.
    • Embed this notice
      Noel Berry (noelfb@mastodon.social)'s status on Thursday, 16-Nov-2023 04:09:53 JST Noel Berry Noel Berry
      in reply to

      Actual Solution! It seems like the open source FontForge (https://fontforge.org/en-US/) actually has a command to remove overlaps like this, and it can run on the entire font and re-export. And it worked extremely well!

      In conversation Thursday, 16-Nov-2023 04:09:53 JST permalink

      Attachments


      1. https://files.mastodon.social/media_attachments/files/111/413/602/011/541/972/original/6875edea9138a831.png
      2. Domain not in remote thumbnail source whitelist: fontforge.org
        FontForge
        from @fontforge
        FontForge is a free and open-source outline font editor.
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Noel Berry (noelfb@mastodon.social)'s status on Thursday, 16-Nov-2023 04:09:54 JST Noel Berry Noel Berry
      in reply to

      but even though it's not compliant, a huge portion of Google's own fonts do this all over the place. Maybe because their Skia library automatically fixes them when it parses the contours haha

      In conversation Thursday, 16-Nov-2023 04:09:54 JST permalink
    • Embed this notice
      Noel Berry (noelfb@mastodon.social)'s status on Thursday, 16-Nov-2023 04:09:55 JST Noel Berry Noel Berry
      in reply to

      It looks like at some point Godot ran into this too but they opted not to fix it, since apparently it's not actually compliant to have contours intersect themselves https://github.com/godotengine/godot/issues/52247

      In conversation Thursday, 16-Nov-2023 04:09:55 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        MSDF renders fonts with overlapping shapes incorrectly (not valid per OpenType standard) · Issue #52247 · godotengine/godot
        Godot version v4.0.dev.calinou [d04aa9a] System information Windows 10 Issue description Visual artifacts appear on some characters when using MSDF option. Font used: https://fonts.google.com/speci...

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.