[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] The Denemo font
From: |
Ralf Mattes |
Subject: |
Re: [Denemo-devel] The Denemo font |
Date: |
Sun, 24 Jul 2011 15:13:36 +0000 (UTC) |
User-agent: |
Pan/0.132 (Waxed in Black) |
On Sat, 23 Jul 2011 18:34:53 +0100, Richard Shann wrote:
> On my Debian system there is a character map application in the
> Accessories which lists a font called OpenSymbol, which has musical
> symbols. The quarter note is utf8 \xF0\x9D\x85\x9F while the (musical)
> dot is \xF0\x9D\x85\xAD, and this font includes the letters etc so to
> generate a graphic "1/4 note = dotted 1/4 note" I used this
Any decent Unicode Font _should_ have musical symbols.
> (d-DirectivePut-standalone-graphic "test" "\n\xF0\x9D\x85\x9F = \xF0\x9D
> \x85\x9F\xF0\x9D\x85\xAD \nOpenSymbol\n16") (d-RefreshDisplay)
>
> I see the debug output in the console as follows:
>
> The font spec has 0 𝅘𝅥 = 𝅘𝅥𝅭
>
> (this may not be legible to you, but the last bit of it is the desired
> graphic), but disappointingly cairo renders the musical symbols as empty
> boxes.
> Two questions
> Is this font widely available/should we include it Why does cairo not
> render it? Note it does render various other special
> signs such as the paragraph sign, from the OpenSymbol font.
Hmm - hard to debug. Just a shot into the dark: what's your locale? (type
'locale at
the shell prompt) Mine is:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
As you can see, I've configured my locale to use utf-8. If your locale isn't
utf-aware
Cairo will render the musical characters as two bytes.
Cheers, RalfD
- [Denemo-devel] The Denemo font, Richard Shann, 2011/07/23
- Re: [Denemo-devel] The Denemo font, Richard Shann, 2011/07/23
- Re: [Denemo-devel] The Denemo font,
Ralf Mattes <=
- Re: [Denemo-devel] The Denemo font, Richard Shann, 2011/07/24
- Re: [Denemo-devel] The Denemo font, R. Mattes, 2011/07/24
- Re: [Denemo-devel] The Denemo font, Richard Shann, 2011/07/25
- Re: [Denemo-devel] The Denemo font, Richard Shann, 2011/07/25
- Re: [Denemo-devel] The Denemo font, Josue Abarca, 2011/07/25
- Re: [Denemo-devel] The Denemo font, Richard Shann, 2011/07/25
- Re: [Denemo-devel] The Denemo font, Richard Shann, 2011/07/26