- Include a migration guide for updating to version 1.8.
Hackage revisions:
- r1: test with GHC 9.2
- r2 (14 Sep 2024)
- allow
containers-0.7
and test with GHC 9.4, 9.6, 9.8, and 9.10 - drop support for GHC 8.0
- allow
- r3 (5 Nov 2024)
- allow
data-default-class-0.2
- allow
Graphics.SVGFonts
andGraphics.SVGFonts.Text
have been greatly refactored and many of the names have changed. ThetextSVG
function is still provided for a bit of backwards compatibility.- New module
Graphics.SVGFonts.Wrap
for configurable text wrapping.
- Bump upper bounds to build with GHC 9.0 and
diagrams-core-1.5
.
- Remove strange kerning values in
LinLibertineCut.svg
. (#29) - Remove non-ASCII character from
LinLibertine.svg
so users don't have to worry about encoding/locale settings. (#30)
- Fixed a bug (Fontforge seems to use SVG namespace for some time, which it didn't before)
unsafePerformIO
removed- drop support for GHC 7.6
- Build with GHC-8.4
- Fix link on Hackage page
- Bug fix: don't print blank line to stdout when there are no errors. (#23) Thanks to Tim Docker for the fix.
- Allow
diagrams-core-1.4
- Allow
diagrams-lib-1.4
- Performance improvement: port ReadPath to use attoparsec
- New
loadFont'
function, to read font data from an XmlSource - Export
Kern(..)
fromGraphics.SVGFonts.ReadFont
- New
Serialize
instances forFontData
andKern
- allow
base-4.9
- allow
data-default-class-0.1
- test with GHC 8.0.1
- Split functionality out of
ReadFont
, intoFonts
(built-in fonts) andText
(rendering text to Diagrams). textSVG'
andtextSVG_
now have the text as a separate argument, distinct fromTextOptions
.ReadFont
does not useunsafePerformIO
any more.unsafePerformIO
is now only used to load built-in fonts.
- Allow
diagrams-lib-1.2
.
- Bump
diagrams-lib
upper bound to< 1.1
.
FontData
can now be written back to SVG usingmakeSvgFont
inside of theWriteFont
module. It is possible to only write back a specfic set of glyphs.- The SVG
font-face
element is now completely supported. This means all possible attributes are read and written back to it. Correct defaults are also set on non optional attributes. Some optional attributes are still required though, due to their use in font rendering. - The
ReadPath
module does not useunsafePerformIO
anymore.ReadFont
is now the only module with unsafe calls. - Minor bug fixes:
stemh
andstemv
are now optional attributes.
- remove old comment causing Haddock build to fail
- fix repo location in .cabal file
- A bunch of bug fixes, cleanup, and reorganization:
- Proper data type for
Kern
andFontData
instead of mega-tuples. - Fixed several
Prelude.read
error onfont-face
attributes. - Fixed wrong attribute names.
- Switched to
data-default-class
instead ofdata-default
.
- Proper data type for
- Require
diagrams-lib-0.7
.