1. TrueType fonts

Hi all,

Does anyone have any info or code for loading/saving/displaying Windows
TrueType fonts (*.ttf) or the other type of Windows fonts (*.fon)?



Thanks in advance,

-molasses

new topic     » topic index » view message » categorize

2. Re: TrueType fonts

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BDE715.5B5A57BE
        charset="iso-8859-1"

"Molasses" wondered:

> Does anyone have any info or code for loading/saving/displaying
> Windows TrueType fonts (*.ttf) or the other type of Windows fonts
> (*.fon)?

You can find the file specs at:

        http://www.wotsit.org/

You can get the source code to a free TrueType renderer at:

        http://www.freetype.org/

Pete Eberlein has written a version of Euphoria called Peuphoria, located
at:

        http://www.harborside.com/home/x/xseal/euphoria/

He also has a version called 'Allegrophoria', which includes the very cool
game library Allegro. It turns out that someone has extended Allegro to use
the FreeType library:

        http://huizen.dds.nl/~deleveld/allegttf.htm


So you have a couple of options with the FreeType:

        1. Rewrite the FreeType code into Euphoria.
        2. Add FreeType wrappers to Peuphoria.
        3. Add FreeType wrappers to Allegrophoria.

-- David Cuny

------_=_NextPart_001_01BDE715.5B5A57BE
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2232.0">
<TITLE>RE: TrueType fonts</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>&quot;Molasses&quot; wondered:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Does anyone have any info or code for =
loading/saving/displaying </FONT>
<BR><FONT SIZE=3D2>&gt; Windows TrueType fonts (*.ttf) or the other =
type of Windows fonts </FONT>
<BR><FONT SIZE=3D2>&gt; (*.fon)?</FONT>
</P>

<P><FONT SIZE=3D2>You can find the file specs at:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2><A =
HREF=3D"http://www.wotsit.org/" =
</P>

<P><FONT SIZE=3D2>You can get the source code to a free TrueType =
renderer at:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2><A =
HREF=3D"http://www.freetype.org/" =
</P>

<P><FONT SIZE=3D2>Pete Eberlein has written a version of Euphoria =
called Peuphoria, located at:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2><A =
HREF=3D"http://www.harborside.com/home/x/xseal/euphoria/" =
FONT>
</P>

<P><FONT SIZE=3D2>He also has a version called 'Allegrophoria', which =
includes the very cool game library Allegro. It turns out that someone =
has extended Allegro to use the FreeType library:</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2><A =
HREF=3D"http://huizen.dds.nl/~deleveld/allegttf.htm" =

</P>
<BR>

<P><FONT SIZE=3D2>So you have a couple of options with the =
FreeType:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>1. Rewrite =
the FreeType code into Euphoria.</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>2. Add =
FreeType wrappers to Peuphoria.</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>3. Add =
FreeType wrappers to Allegrophoria.</FONT>
</P>

<P><FONT SIZE=3D2>-- David Cuny</FONT>
</P>

</HTML>
------_=_NextPart_001_01BDE715.5B5A57BE--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu