[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with a font
From: |
Walter Garcia-Fontes |
Subject: |
Re: Problem with a font |
Date: |
Tue, 3 Apr 2018 18:31:32 +0200 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
* Thomas Morley, address@hidden [03/04/18 17:40]:
> > Just a question, sorry if it is obvious, what do you mean by
> > "typographic apostrophes/quotation marks"?
> >
>
>
>
> Probably: ‘ or ’
>
> As for italic you may try Torsten's markup-command `slanted' from:
> http://lilypond.1069038.n5.nabble.com/How-to-prevent-ly-stencil-rotate-to-modify-dimensions-tt210800.html
>
> Leading to:
>
> #(define-markup-command
> (slanted layout props arg)
> (markup?)
> #:category font
> #:properties ((slant-angle 12))
> "Fake a slanted font"
> (let* ((alpha-rad (* 0.5 (acos (tan (* (/ PI -180) slant-angle)))))
> (alpha-deg (* (/ 180 PI) alpha-rad))
> (stencil
> (if (markup? arg)
> (interpret-markup layout props arg)
> empty-stencil)))
>
> (ly:stencil-outline
> (ly:stencil-scale
> (ly:stencil-rotate
> (ly:stencil-scale
> (ly:stencil-rotate
> (ly:stencil-outline stencil point-stencil)
> 45 0 0)
> 1
> (* (tan alpha-rad)))
> (* (- alpha-deg)) 0 0)
> (* (sqrt 2) (cos alpha-rad)) (/ 0.5 (sqrt 0.5) (sin alpha-rad)))
> stencil)))
>
> \markup
> \override #'(font-name . "Escolar2")
> \line {
> problem‘s’s
> \override #'(slant-angle . 18)
> \slanted
> { problem‘s’s }
> }
>
Awesome! Thanks a lot.
I get an error in your code for "slanting" the font:
Parsing...letras.ly:18:5:
In expression (ly:stencil-outline (ly:stencil-scale # # ...) stencil):
letras.ly:18:5: Unbound variable: ly:stencil-outline
--
Walter Garcia-Fontes
L'Hospitalet de Llobregat
- Problem with a font, Walter Garcia-Fontes, 2018/04/02
- Re: Problem with a font, Thomas Morley, 2018/04/03
- Re: Problem with a font, Walter Garcia-Fontes, 2018/04/03
- Re: Problem with a font, Thomas Morley, 2018/04/03
- Re: Problem with a font, Walter Garcia-Fontes, 2018/04/03
- Re: Problem with a font, Abraham Lee, 2018/04/03
- Re: Problem with a font, Walter Garcia-Fontes, 2018/04/03
- Re: Problem with a font, Thomas Morley, 2018/04/03
- Re: Problem with a font,
Walter Garcia-Fontes <=
- Re: Problem with a font, Thomas Morley, 2018/04/03
- Re: Problem with a font, Torsten Hämmerle, 2018/04/05
- Re: Problem with a font, Walter Garcia-Fontes, 2018/04/05
- Re: Problem with a font, Torsten Hämmerle, 2018/04/05
- Re: Problem with a font, Walter Garcia-Fontes, 2018/04/06
- Re: Problem with a font, Thomas Morley, 2018/04/06
- Re: Problem with a font, Malte Meyn, 2018/04/03
- Re: Problem with a font, Simon Albrecht, 2018/04/04
Re: Problem with a font, Andrew Bernard, 2018/04/05