473,587 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Freetype 2 Bindings

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 of a string I feed it appears in the image and
blank spaces are present for the rest of the characters (you'll see
what I mean if you run render.py). I'm pretty sure it's the part of the
code in the example that defines the kerning, but I'm new to Freetype2,
and I tried following the documentation and changing the code, but I
can't pinpoint the exact problem. If you have experience programming
with Freetype2 and can figure out this out, please help, I'll be
forever grateful.

Thanks,
Leon

Sep 7 '06 #1
0 1054

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

Similar topics

1
2926
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,...
1
1858
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
1261
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
2815
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...
1
1718
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'
7
2720
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
2812
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...
1
1817
by: Jason Yamada-Hanff | last post by:
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 -...
0
4212
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
7920
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...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
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. ...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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...
1
5718
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...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1189
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...

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.