Code Monkey home page Code Monkey logo

Comments (5)

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024 1

Sorry for late. I come back to this issue from time to time, but I can't figure out how to fix it better yet. I don't want to just hide the error (because users expect correct fonts in the output). Also, I'm not sure if we should use static linking of the fresh freetype lib.
I will try to think more and maybe I will come to some solution.

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

Hi! Thank you! Nice catch!
I've reproduced the issue with the same result. It seems like FreeType goes to a weird state after rendering some glyphs when using own autohinter (with font's hinter the problem disappears). For example, characters 8330 and 8377 rendered well alone, but not one by one. As workaround I try to reload font on error, it works so far, but I think it needs further investigation.

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

It looks like there a some bug in FreeType version < 2.11. I've updated github build actions and AppVeyor scripts to use a fresh FreeType version. The last release works good so far.

from fontbm.

RaZeR-RBI avatar RaZeR-RBI commented on August 23, 2024

It looks like there a some bug in FreeType version < 2.11. I've updated github build actions and AppVeyor scripts to use a fresh FreeType version. The last release works good so far.

Just tested it on my dev machine running Debian Bullseye and sadly it still crashes because the executable is dynamically linked to freetype (confirmed with readelf -d), and my system's (and package repo's) freetype version is 2.10.4.

I guess I'll use my patched version for now, but the question whether should we make a workaround (by using my patch or something other) or not is still open. What do you think?

from fontbm.

RaZeR-RBI avatar RaZeR-RBI commented on August 23, 2024

Sorry for late. I come back to this issue from time to time, but I can't figure out how to fix it better yet. I don't want to just hide the error (because users expect correct fonts in the output). Also, I'm not sure if we should use static linking of the fresh freetype lib. I will try to think more and maybe I will come to some solution.

No worries, I've just examined it for a hobby project so there's no any time pressure at all.
I'd personally not go the static link way because I'm afraid that it can possibly bring more issues than it can solve, however, if you don't want to hide the error (which is understandable) I think it's then possible to add a command line option to skip offending characters if the user accepts that behavior, as a workaround.

from fontbm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.