473,795 Members | 3,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Freetype bindings, finally?

Hi all,

I'm working on a project that would benefit very much from Python
Freetype2 bindings (the Fonty Python project). I don't want to
duplicate efforts and wrap the library again if we don't have to.
Interestingly, it seems like there have been lots of attempts at doing
this.

Generally, there are:
ft2 - http://www.satzbau-gmbh.de/staff/abel/ft2/index.html
No longer maintained, incomplete, beta, from around the 2.0 days.
Py-freetype - http://indic-computing.sourceforge.n...freetype2.html
More recent, on Pyrex, last update was in 2003, no longer
maintained, doesn't compile for me

Then, it seems like multiple projects (matplotlib and PIL) have done
their own integration with FT, but maintain that code themselves, for
themselves. These, of course, are up-to-date and maintained. Are
there other projects that have also done their own work on FT
bindings?

Ultimately, this means that there is no FreeType2 bindings package
that is up-to-date and generally available, but that the work has been
done multiple times over by individual projects. I understand that
this is totally the prerogative of each project. The community,
though, could benefit from having a central package of bindings. Are
those who have already worked on bindings willing to extract their
work into a separate package? It would be great to finally have a set
of standard bindings!

Thoughts are welcome. I am new to the C extension world, so I am
probably missing a whole other level of complexity here.

Thanks,
Jason

p.s. There is a sad message on Freetype's website about this
("Unfortunately , no mature Python bindings for FreeType 2 are
available currently..."), right above its notes about all the other
languages that do have bindings (including Ruby!). :-)

Sep 19 '07 #1
1 1824
On 2007-09-19, Jason Yamada-Hanff <jy******@gmail .comwrote:
Hi all,
I'm working on a project that would benefit very much from Python
Freetype2 bindings (the Fonty Python project). I don't want to
duplicate efforts and wrap the library again if we don't have to.
Interestingly, it seems like there have been lots of attempts at doing
this.
I would like a freetype library as well, but neither have I done Python/C
interfaces.

If you have time to put into this, I would suggest starting a mailing list on
the project, as well as continuing the discussion here. I would certainly
susbscribe, and contribute as time and talent permit.

-Bill
--
Sattre Press Tales of War
http://sattre-press.com/ by Lord Dunsany
in**@sattre-press.com http://sattre-press.com/tow.html
Sep 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2933
by: Arthur Chereau | last post by:
Hi, I'm trying to setup viewcvs to work with subversion 1.2.0 on Linux with Python 2.4.1. The last viewcvs (from CVS) needs subversion python bindings. I installed swig and built subversion from source with it. Everything works fine until I try to build the Python bindings. When I try "make swig-py" I get the following, Python related, error: # make swig-py
1
1861
by: awaegel | last post by:
Hello, I've been running php/apache/etc locally on my powerbook for a long time, but am having problems activating freetype with a new version of php. I'm using: php 4.4.0 freetype 2.1.10 (compiled from source) gd 2.0.28 (came with php)
0
1266
by: p | last post by:
Hi, I've been writing text onto images using imagettftext, having first loaded an Arial TTF. The result can be seen at http://linuxbox.co.uk/57_off.png After moving the code to another server, the text started coming out differently: http://linuxbox.co.uk/65_off.png Examing phpinfo() for each server, it seems the original server had:
12
2833
by: Thomas Bartkus | last post by:
Does anyone use emacs together with both WordStar key bindings and python mode? I'm afraid that Wordstar editing key commands are burned R/O into my knuckles! I would like to play with emacs for Python editing but I'm having (2) problems. 1) When I load a .py file, emacs automatically overrides my wordstar-mode with python-mode, forcing all the keybindings back to emacs native keys. Why?
1
1728
by: francescomoi | last post by:
Hi. I compiled PHP by using: -------------- './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/httpd/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-curl=/usr/local/include/curl' '--with-gd=/usr/local/gd' '--with-zlib-dir=/usr/local/zlib' '-with-jpeg-dir=/usr/local/jpeg-6b' '--with-ttf=/usr/include/freetype2'
0
1064
by: Leon | last post by:
Hi, Has anybody experimented with this python binding for Freetype2 (http://www.satzbau-gmbh.de/staff/abel/ft2/index.html) ? I'm hoping to learn more about using text in pyOpenGl by creating textures from glyphs generated by Freetype2. I downloaded and installed the bindings, and with the download came an example (render.py) which renders a string to an image, when I run the example without modifying the code, only the first character...
7
2727
by: Glich | last post by:
Hi, where can I download freetype (>= 2.1.7)? I need it to use matplotlib. I have search a lot but still can not find it. Thanks!
2
2821
by: Lorenzo Thurman | last post by:
I keep getting this error when trying to use fonts with Image_Graph: PHP Fatal error: Call to undefined function: imagettfbbox() in /usr/local/lib/php/Image/Canvas/GD.php on line 1240 After Googling the error, it seems that I was missing Freetype support. I've installed Freetype and rebuilt PHP with Freetype support, but I still get the same error. I look at the output from phpinfo() and I see that PHP was compiled with this switch:...
0
4224
by: luckyG | last post by:
I have php (5.2.4) compiled on redhat 4.0 as followed : ./configure \ --with-oci8=$ORACLE_HOME --with-apxs=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --enable-sigchild \ --with-gd \ --with-ttf=/usr/include/freetype2 \ --with-freetype-dir=/usr/include/freetype2 \ --with-gd-native-ttf \
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10448
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.