Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > rendering fonts with ruby

Reply
Thread Tools

rendering fonts with ruby

 
 
Cullam Bruce-lockhart
Guest
Posts: n/a
 
      01-14-2011
Hey gang.

I'm re-writing a tool to read .ttf files, and translate them into the
needed bitmaps for their glyphs. (The tool I've got for this now is
written in C++, and VERY poorly designed). For the re-write, I'd like to
use Ruby. But I'm having some trouble finding existing tools to actually
read the font files, and translate them into the bitmaps. In the C++
version, freetype is used for these steps. However, all versions of
freetype I've been able to find with Ruby are in alpha, and haven't been
updated in several years. There are no gems for them, and the simple
install instructions don't seem to do much of anything. I have found
absolutely no discussion on-line about how to get them working, and
there is little to no documentation.

So essentially, I have two questions: Has anybody out there used an
existing freetype binding for Ruby, and knows a) how to get them working
and b) how well they actually do work?
Or alternatively, are there any other extensions for ruby that can
create glyph images by reading information from a .ttf file? I've done a
fair bit of googling on this, but haven't been able to find much of use,
so I figure it's time to ask the internet! Thanks a lot for the help.
-cullam

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Jonas Pfenniger (zimbatm)
Guest
Posts: n/a
 
      01-16-2011
Hi Cullam,

did you take a look at the pango binding ? I think it does what you
want, but you'll have to try it out.

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/Pango

2011/1/14 Cullam Bruce-lockhart <>:
> Hey gang.
>
> I'm re-writing a tool to read .ttf files, and translate them into the
> needed bitmaps for their glyphs. (The tool I've got for this now is
> written in C++, and VERY poorly designed). For the re-write, I'd like to
> use Ruby. But I'm having some trouble finding existing tools to actually
> read the font files, and translate them into the bitmaps. In the C++
> version, freetype is used for these steps. However, all versions of
> freetype I've been able to find with Ruby are in alpha, and haven't been
> updated in several years. There are no gems for them, and the simple
> install instructions don't seem to do much of anything. I have found
> absolutely no discussion on-line about how to get them working, and
> there is little to no documentation.
>
> So essentially, I have two questions: Has anybody out there used an
> existing freetype binding for Ruby, and knows a) how to get them working
> and b) how well they actually do work?
> Or alternatively, are there any other extensions for ruby that can
> create glyph images by reading information from a .ttf file? I've done a
> fair bit of googling on this, but haven't been able to find much of use,
> so I figure it's time to ask the internet! Thanks a lot for the help.
> -cullam
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


 
Reply With Quote
 
 
 
 
Josef P.
Guest
Posts: n/a
 
      03-17-2011
Cullam Bruce-lockhart wrote in post #974925:
> Hey gang.
>
> I'm re-writing a tool to read .ttf files, and translate them into the
> needed bitmaps for their glyphs.


Hello, just wanted to ask if you get somewhere with this? I need the
same thing and also google was not able to answer my needs.

Pepe

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rendering bitmap fonts from ruby dc Ruby 2 01-26-2007 01:31 PM
IE6 SP1 rendering vs IE6 SP2 rendering Peter Mount HTML 4 01-31-2006 08:01 AM
Fonts suddenly unreadable in IE 6.0 - All other system fonts appear normal Emily Computer Support 3 06-09-2005 04:52 AM
asp fonts problems (chinese fonts become ??????) sam ASP General 0 06-06-2004 06:15 AM
Bad rendering of java fonts Tristan Java 0 11-28-2003 09:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57