Comments (15)
It is just freetype.version()
, according to the code:
freetype-py/freetype/__init__.py
Line 85 in ccd4f5f
from freetype-py.
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.
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.
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.
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.
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.
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.
You can query from within freetype-py - it is returned by FT_Version(), or something of similar name.
from freetype-py.
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.
The crash only happens on macOS.
from freetype-py.
Related Issues (20)
- FT_Exception: (cannot open resource) - non-english file path HOT 21
- Two-factor identification on PyPi HOT 5
- get_cbox() raise "invalid argument" error HOT 3
- Wrong horizontal character positioning in hello world examples HOT 9
- New release with pyinstaller fix HOT 5
- feature request: expose FreeType's COLRv1 API HOT 6
- Please publish .tar.gz sdist archives
- on exit, freetype/__init__.py", line 1233, in __del__ TypeError: 'NoneType' object is not callable HOT 10
- possible memory leaks and issues during finalizer HOT 1
- `load_char` failed for custom fonts with right input HOT 28
- Pyinstaller cannot import module HOT 5
- AttributeError: module 'freetype' has no attribute 'Face' HOT 2
- Please provide non-bundled wheels HOT 7
- Remove the pyinstaller code if there is any more trouble
- Move freetype-py to Freetype organisation ? HOT 27
- How to change the default encoding? HOT 4
- Check upstream and sync FT_ENCODING_* naming and additional aliases.
- Bitmap of numbers or letters is incorrect HOT 12
- Add some support for CMAP format 14 (IVS/SVS characters) HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freetype-py.