-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSVGFonts.cabal
74 lines (72 loc) · 2.99 KB
/
SVGFonts.cabal
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Name: SVGFonts
Version: 1.8.0.1
Synopsis: Fonts from the SVG-Font format
Description: Native font support for the diagrams framework (<https://diagrams.github.io/>). Note that this package can be used with any diagrams backend, not just the SVG backend. The SVG-font format is easy to parse
and was therefore chosen for a font library completely written in Haskell.
.
You can convert your own font to SVG with <http://fontforge.github.io/>,
or use the included LinLibertine and Bitstream fonts.
.
Features:
.
* Complete implementation of the features that Fontforge produces (though not the complete SVG format)
.
* Kerning (/i.e./ the two characters in \"VA\" are closer than the characters in \"VV\")
.
* Unicode
.
* Ligatures
.
XML speed issues can be solved by trimming the svg file to only those characters that are used (or maybe binary xml one day).
.
Version 1.0 of this library supports texturing, though this only makes sense in a diagrams backend that does rasterization in Haskell, such as diagrams-rasterific.
.
__Note__: for help porting pre-1.8 code to SVGFonts-1.8, <https://github.com/diagrams/SVGFonts/#porting-to-version-18 see the README>.
.
category: Graphics
License: BSD3
License-file: LICENSE
Author: Tillmann Vogt
Maintainer: [email protected]
build-type: Simple
Cabal-Version: 1.18
data-files: fonts/*.svg
extra-source-files: CHANGES.md, README.md, diagrams/*.svg
extra-doc-files: diagrams/*.svg
Tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1
source-repository head
type: git
location: https://github.com/diagrams/SVGFonts.git
Library
hs-source-dirs: src
ghc-options: -W -Wall -fno-warn-unused-do-bind
other-modules: Paths_SVGFonts
build-depends:
attoparsec,
base == 4.*,
bytestring >= 0.10 && < 1.0,
cereal,
cereal-vector,
containers >= 0.4 && < 0.8,
data-default-class >= 0.2 && < 0.3,
diagrams-core >= 1.3 && < 1.6,
diagrams-lib >= 1.3 && < 1.5,
directory >= 1.1,
blaze-svg >= 0.3.3,
blaze-markup >= 0.5,
parsec,
split,
text,
vector,
xml
exposed-modules:
Graphics.SVGFonts
Graphics.SVGFonts.Text
Graphics.SVGFonts.ReadFont
Graphics.SVGFonts.Fonts
Graphics.SVGFonts.CharReference
Graphics.SVGFonts.ReadPath
Graphics.SVGFonts.WriteFont
Graphics.SVGFonts.Wrap
Graphics.SVGFonts.PathInRect
default-language: Haskell2010