Giter Club home page Giter Club logo

Comments (15)

HinTak avatar HinTak commented on September 22, 2024 1

It is just freetype.version(), according to the code:

def version():

from freetype-py.

miguelsousa avatar miguelsousa commented on September 22, 2024

I tried the patch proposed in #171 and the segfault still happens. Commenting out the Face.__del__ method also didn't fix it.

from freetype-py.

HinTak avatar HinTak commented on September 22, 2024

You do know 2.4.0 is about a decade old, right? I was adapting 2.6.x for the beginning of fontval, which was 2016, 7 years ago.

Edit: sorry , wasn't in touch with freetype-py version. In general, segfault is a freetype problem; strange exception is a freetype-py problem.

from freetype-py.

miguelsousa avatar miguelsousa commented on September 22, 2024

You do know 2.4.0 is about a decade old

I'm talking about freetype-py v2.4.0 which was release in May 4, 2023, not Python 2.4.0.

from freetype-py.

HinTak avatar HinTak commented on September 22, 2024

I think somebody else also updated the bundled freetype version recently, if you are using wheel or whatever it is called, rather than the system-wide freetype on most Linux machines.

from freetype-py.

miguelsousa avatar miguelsousa commented on September 22, 2024

I don't have freetype installed, and as I mentioned above, rolling back freetype-py to v2.3.0 no longer causes the segfault.
Is there a way to tell which version of freetype is bundled with each freetype-py?

from freetype-py.

miguelsousa avatar miguelsousa commented on September 22, 2024

Following the release notes of v2.4.0, I found this commit which updated freetype from 2.12.0 to 2.13.0.

from freetype-py.

HinTak avatar HinTak commented on September 22, 2024

You can query from within freetype-py - it is returned by FT_Version(), or something of similar name.

from freetype-py.

HinTak avatar HinTak commented on September 22, 2024

Some ways of installing freetype-py also build a bundled freetype. The version is controlled by
https://github.com/rougier/freetype-py/blob/master/setup-build-freetype.py so you might want to check that file's history. Regardless, putting something like FT_Version() inside your python code might be a better way of knowing what version of freetype you are using.

from freetype-py.

miguelsousa avatar miguelsousa commented on September 22, 2024

The crash only happens on macOS.

from freetype-py.

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.