[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with a font

From: Torsten Hämmerle
Subject: Re: Problem with a font
Date: Fri, 6 Apr 2018 03:18:02 -0700 (MST)

Walter Garcia-Fontes wrote
> [...] but her bosses are stubborn to use that one, which is used in
> schools here in Spain, and so they are used to it.

Hi Walter,

Everything Andrew said is exactly how I feel about it.
But I can see the point that Escolar is intended for didactic use (hence the
name...) and has not been created to look good but to serve as a didactic
font for learning how to write.
We have similar fonts in Germany (called "Ausgangsschrift") - the more
"modern"/simplified, the more ugly. ;)

But apart from that, the Escolar font is poorly crafted in my opinion and,
well, we can't change that.

*Bold, italic etc.*
A font mimicking handwriting should never italicized for emphasis, because
you would never do that in handwriting.
The same goes for bold (although on could use a thicker pen).
In handwriting, underlining would be the way to go (even if underlining is a
bad way of emphasis in printed text).

*Fake bold and fake italics*
should always be a last resort.

*Many Teachers...*
... tend to over-use bold text because they think that everything is
important and never learned anything about typography (neither at school nor
at the university). That always made me wonder because producing texts is an
integral part of their daily work.

As Andrew already stated, Escolar2 Negra (!!!) actually /is/ a bold font
(cf. Arial Black) and there is Escolar 1 as a regular version (that nobody
seems to be using, though).

*Apart from that...*
I've had had a look what Office does (Open Office in my case) and tried to
mimic its behaviour in our LilyPond markup commands.
Regardless of any typographic aspects, the LilyPond output should match the
Open Office (or Libre Office or Microsoft Office) output that the children
are used to.

Here's a comparison of Open Office's fake bold/italic and my corresponding
LilyPond emulations:


You've already created your own \bolded-command (very good!). In my version,
I use several overrides to get rid of the "zigzag" outlines of a single
shift (see the letter "s" for example).

Here's what I did (\slanted and \fake-bold):

\version "2.18.2"

  (fake-bold layout props arg)
  #:category font
  #:properties ((shift 0.009))
  "Fake a bold font"
  (let* ((stencil (interpret-markup layout props arg)))
    (set! stencil
           (ly:stencil-translate-axis stencil shift X)
           (ly:stencil-translate-axis stencil (* 2 shift) X)))
     (ly:stencil-translate-axis stencil (* 3 shift) X))))

  (slanted layout props arg)
  #:category font
  #:properties ((slant-angle 19))
  "Fake a slanted font"
  (let* ((alpha-rad (* 0.5 (acos (tan (* (/ PI -180) slant-angle)))))
         (alpha-deg (* (/ 180 PI) alpha-rad))
          (if (markup? arg)
              (interpret-markup layout props arg)
         (x-ext (ly:stencil-extent stencil X))
         (y-ext (ly:stencil-extent stencil Y)))
          (ly:make-stencil (ly:stencil-expr stencil) (cons 0 0) (cons 0 0))
          45 0 0)
         (* (tan alpha-rad)))
        (* (- alpha-deg)) 0 0)
       (* (sqrt 2) (cos alpha-rad)) (/ 0.5 (sqrt 0.5) (sin alpha-rad))))
     x-ext y-ext)))

\markup \override #'(font-name . "Escolar2") \column {
  "This is Escolar 2"
  \fake-bold "This is bold in Lilypond"
  \slanted "This is italic in Lilypond"

All the best

Sent from:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]