[Haskell-cafe] ANN: SVGFonts 0.1

2009-04-06 Thread Tillmann Vogt

I hereby publish my first library in Haskell.

SVGFonts 0.1

It parses the pretty unknown SVG Font format to produce outlines of 
characters. The big advantage of this format is that it is XML, which 
means easy parsing and manipulating. Because I haven't found any 
svg-files on the Internet the typical way is to convert a more popular 
format (i.e. .ttf) into SVG Font via fontforge.


This library may be useful if you want to have a direct access to 
specific algorithms which is of course harder when using a binding (i.e. 
Jeff Heards FTGL binding). The speed is improvable (see TO DO list) and 
since since this is my first library there might some errors which I am 
not aware of (please tell me). I also wonder why the library doesn't 
appear under graphics on hackage, although there is   Category: Graphics 
in my cabal file.


Depending on which library I like more, I will maybe integrate SVGFonts 
into LambdaCube or Fieldtrip


Cheers,
Tillmann
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: SVGFonts 0.1

2009-04-06 Thread John Van Enk
This sounds very cool. Is is just a program, or is there a library sitting
behind it? From your .cabal file, it seems to be just a binary program.

Is this correct?

http://hackage.haskell.org/packages/archive/SVGFonts/0.1/SVGFonts.cabal

On Mon, Apr 6, 2009 at 1:22 PM, Tillmann Vogt
tillmann.v...@rwth-aachen.dewrote:

 I hereby publish my first library in Haskell.

 SVGFonts 0.1

 It parses the pretty unknown SVG Font format to produce outlines of
 characters. The big advantage of this format is that it is XML, which means
 easy parsing and manipulating. Because I haven't found any svg-files on the
 Internet the typical way is to convert a more popular format (i.e. .ttf)
 into SVG Font via fontforge.

 This library may be useful if you want to have a direct access to specific
 algorithms which is of course harder when using a binding (i.e. Jeff Heards
 FTGL binding). The speed is improvable (see TO DO list) and since since this
 is my first library there might some errors which I am not aware of (please
 tell me). I also wonder why the library doesn't appear under graphics on
 hackage, although there is   Category: Graphics in my cabal file.

 Depending on which library I like more, I will maybe integrate SVGFonts
 into LambdaCube or Fieldtrip

 Cheers,
 Tillmann
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




-- 
/jve
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: SVGFonts 0.1

2009-04-06 Thread Max Rabkin
On Mon, Apr 6, 2009 at 7:32 PM, Tillmann Vogt
tillmann.v...@rwth-aachen.de wrote:
 It is a real library made of pure Haskell. What is wrong with my .cabal
 file?

The issue is not about whether it is pure Haskell. You have simply
marked it up as an executable rather than a library.

Executable Fonts
  Main-is:test/Fonts.hs
  Build-Depends:  haskell98, base, OpenGL, GLUT, xml, parsec

--Max
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: SVGFonts 0.1

2009-04-06 Thread John Van Enk
What your cabal file describes is a single executable,

Executable Fonts
 main-is: tests/Fonts.hs

This just tells us to build the file tests/Fonts.hs into a single executable
named 'Fonts'. You probably want to retructure your project a bit into
something like this.

./LICENSE
./README
./Setup.hs
./src
./src/SVGFonts
./src/SVGFonts/KETTriangulation.hs
./src/SVGFonts/PointOfView.hs
./src/SVGFonts/ReadFont.hs
./SVGFonts.cabal
./test
./test/Fonts.hs
./test/GirlsareWeird.svg
./test/LinLibertineO.svg
./test/Scriptin.svg
./TODO
Here's what your cabal file should probably look like:

Name: SVGFonts
Version:  0.1
Description:  parse svg-font files and generate outlines of letters and
sentences
License:  GPL
License-file: LICENSE
Author:   Tillmann Vogt
Maintainer:   tillmann.v...@rwth-aachen.de
Build-Type:   Simple
Cabal-Version:=1.2
library
build-depends:
haskell98,
base,
OpenGL,
GLUT,
xml,
parsec
exposed-modules:
SVGFonts.KETTriangulation
SVGFonts.PointOfView
SVGFonts.ReadFont

That isn't exact, but it should be close.

/jve


On Mon, Apr 6, 2009 at 1:32 PM, Tillmann Vogt
tillmann.v...@rwth-aachen.dewrote:

 John Van Enk schrieb:

 This sounds very cool. Is is just a program, or is there a library sitting
 behind it? From your .cabal file, it seems to be just a binary program.

 Is this correct?

 http://hackage.haskell.org/packages/archive/SVGFonts/0.1/SVGFonts.cabal

 On Mon, Apr 6, 2009 at 1:22 PM, Tillmann Vogt
 tillmann.v...@rwth-aachen.dewrote:



 It is a real library made of pure Haskell. What is wrong with my .cabal
 file?




-- 
/jve
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: SVGFonts 0.1

2009-04-06 Thread Tillmann Vogt

John Van Enk schrieb:

This sounds very cool. Is is just a program, or is there a library sitting
behind it? From your .cabal file, it seems to be just a binary program.

Is this correct?

http://hackage.haskell.org/packages/archive/SVGFonts/0.1/SVGFonts.cabal

On Mon, Apr 6, 2009 at 1:22 PM, Tillmann Vogt
tillmann.v...@rwth-aachen.dewrote:




It is a real library made of pure Haskell. What is wrong with my .cabal 
file?

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe