* Thomas Morley, thomasmorle...@gmail.com [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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user