diagrams / SVGFonts

Fonts from the SVG-Font format
http://hackage.haskell.org/package/SVGFonts
Other
20 stars 12 forks source link

Fails to open SVG fonts #15

Closed evanrinehart closed 6 years ago

evanrinehart commented 9 years ago

The lack of an IO type on the function openFont seems very silly. But besides that, after it lazily succeeds at openFont on for example this font http://suchanek.name/programs/fabiana/Fabiana/Fabiana-font.svg attempting to access any of the FontData results in the "head: empty list" crash. I'm very interested in nice text support for diagrams.

tkvogt commented 9 years ago

You are right about the IO type. I will change this. The bug maybe comes from SVGFonts expecting a file generated by fontforge. The parser is only tested on this input. If the parser fails somewhere there are empty lists. I am currently working on a parser for the full svg format which will be faster and more robust. Then I wanted to base SVGFonts on svg-diagrams.

tkvogt commented 6 years ago

Fixed. Same as #24 . Sorry for the procrastination. Issues don't go away by waiting :-)