Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in lin2 font messes up "Pl" #29

Closed
duairc opened this issue Jan 22, 2019 · 2 comments
Closed

Built-in lin2 font messes up "Pl" #29

duairc opened this issue Jan 22, 2019 · 2 comments

Comments

@duairc
Copy link

duairc commented Jan 22, 2019

Look at the output of this:

import Data.Colour
import Diagrams
import Diagrams.Backend.SVG.CmdLine
import Graphics.SVGFonts
import Graphics.SVGFonts.ReadFont

pl :: PreparedFont Double -> Diagram B
pl font = textSVG_ (with {textFont = font}) "Pl" # lw none # fc black

main :: IO ()
main = lin2 >>= mainWith . pl
@byorgey
Copy link
Member

byorgey commented Jan 22, 2019

Hmm, indeed, that is strange. @tkvogt , any ideas?

@tkvogt
Copy link
Member

tkvogt commented Jan 23, 2019

LinLibertineCut.svg has some wrong kerning values (way too big) at the end of the file:
<hkern g1="F,P,uni01A4,Rho,afii10034,uni1E1E,uni1E54,uni1E56" g2="exclam,question,b,h,k,l,thorn,hcircumflex,hbar,kcommaaccent,lacute,lcommaaccent,lcaron,ldot,lslash,uni0180,uni1E03,uni1E05,uni1E07,uni1E23,uni1E25,uni1E27,uni1E29,uni1E2B,uni1E31,uni1E33,uni1E35,uni1E37,uni1E39,uni1E3B,uni1E3D,exclamdbl" k="7696" />
I deleted them. Until is uploaded to hackage use lin instead of lin2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants