Skip to content

Commit

Permalink
Update from Hackage at 2019-01-29T16:56:08Z
Browse files Browse the repository at this point in the history
  • Loading branch information
all-cabal-tool committed Jan 29, 2019
1 parent 2b41e21 commit 01238f9
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
90 changes: 90 additions & 0 deletions SVGFonts/1.7.0.1/SVGFonts.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
Name: SVGFonts
Version: 1.7.0.1
Synopsis: Fonts from the SVG-Font format
Description: Native font support for the diagrams framework (<http://projects.haskell.org/diagrams/>). 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
.
* An example that shows how to do text boxes with syntax highlighting using highlighting-kate:
<http://hackage.haskell.org/package/highlighting-kate>
.
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.
.
Example:
.
> # LANGUAGE NoMonomorphismRestriction #
>
> main = do linLibertine <- loadDataFont "fonts/LinLibertine.svg"
> t <- text'''' linLibertine "Hello"
> mainWith (t :: Diagram B)
>
> text' font t = stroke (textSVG t 1) # fc purple # fillRule EvenOdd
> text'' font t = stroke (textSVG' (TextOpts font INSIDE_H KERN False 1 1) t) # fillRule EvenOdd
> text''' font t = (textSVG_ (TextOpts font INSIDE_H KERN True 1 1) t) # fillRule EvenOdd
>
> -- using a local font
> text'''' font t = do
> font <- loadFont "/path/to/font.svg"
> return $ stroke (textSVG' (TextOpts font INSIDE_H KERN False 1 1) t)
.
category: Graphics
License: BSD3
License-file: LICENSE
Author: Tillmann Vogt
Maintainer: diagrams-discuss@googlegroups.com
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 == 7.8.4, GHC == 7.10.2, GHC == 8.0.1, GHC == 8.2.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.7,
data-default-class < 0.2,
diagrams-core >= 1.3 && < 1.5,
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
default-language: Haskell2010
1 change: 1 addition & 0 deletions SVGFonts/1.7.0.1/SVGFonts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"package-hashes":{"MD5":"46631c1f04c14983b8c4ce13b6a016bd","Skein512_512":"650a4906d90c5d987cd2c2296b7a1c701ae00ba592dec9f42803b8866f4b531402e00b4254eab43e810578f06185b7447e67ca6534a4d8fb493b63ace133384f","SHA1":"e39c5ad29930b98290fa2df61bf1a3f080eaf9bf","SHA512":"b6f8d4de3c632faf4745d25b46d498f889a2e46262fdf4db24befba36ff8bea42692d43100dd385a27aba9044c17e5a8e2828ac2e1e1eec000ed0aac51d79680","SHA256":"30b1eb325312b6dda99da23997197cda9dbc93e0829e2b795849a790e7bc761b"},"package-locations":["https://hackage.haskell.org/package/SVGFonts-1.7.0.1/SVGFonts-1.7.0.1.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/SVGFonts-1.7.0.1.tar.gz"],"package-size":663064}

0 comments on commit 01238f9

Please sign in to comment.