]> git.donarmstrong.com Git - lilypond.git/commitdiff
* mf/bigcheese.pe.in (i): Map to 0xe000 (PUA) for testing, which
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Dec 2004 19:12:40 +0000 (19:12 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Dec 2004 19:12:40 +0000 (19:12 +0000)
does not crash fontforge.

* scm/lily-library.scm (char->unicode-index): Hack to map onto
PUA.

ChangeLog
mf/bigcheese.pe.in
scm/framework-gnome.scm
scm/lily-library.scm
scm/output-gnome.scm

index 64fffb33f5a799bda578b96a249bd7433aab963a..81958846b269d3002ce48cd90ae216549f4f99d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-12-12  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * mf/bigcheese.pe.in (i): Map to 0xe000 (PUA) for testing, which
+       does not crash fontforge.
+
+       * scm/lily-library.scm (char->unicode-index): Hack to map onto
+       PUA.
+
 2004-12-12  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * scm/framework-ps.scm (ps-embed-cff): new function.
index e8222070f4a084abde40a16ffe66671c7af53ffd..5ed72f949e95a82b26625f8261a83cfce91fc545 100644 (file)
@@ -3,7 +3,9 @@
 New();
 
 # Separate Feta versioning?
-SetFontNames("bigcheese20", "LilyPond", "LilyPondBigCheese", "Regular", "GNU GPL", "@TOPLEVEL_VERSION@");
+# Naming: * expose LilyPond20/LilyPond rather than bigcheese
+#         *  using 20 as Weight works for gnome-font-select widget: gfs
+SetFontNames("bigcheese20", "LilyPond", "LilyPond BigCheese 20", "20", "GNU GPL", "@TOPLEVEL_VERSION@");
 
 MergeFonts("feta20.pfa");
 MergeFonts("parmesan20.pfa");
@@ -12,10 +14,26 @@ MergeFonts("feta-din14.pfa");
 MergeKern("feta-din14.tfm");
 
 LoadTableFromFile("LILC", "feta20.otf-table")
+
+# Hmm, how do we keep feta-din and feta-nummer mapped on ascii positions?
+# That's much more convenient for using in a text processor.  --jcn
 i = 0;
 while (i < CharCnt())
   Select(i);
-  SetUnicodeValue(i + 0xF000, 0);
+# crashes fontforge, use PUA for now -- jcn
+# SetUnicodeValue(i + 0xF0000, 0);
+/*
+PRIVATE AREA
+       In the BMP, the range 0xe000 to 0xf8ff will never be  assigned  to  any
+       characters  by  the standard and is reserved for private usage. For the
+       Linux community, this private area has been subdivided further into the
+       range  0xe000  to 0xefff which can be used individually by any end-user
+       and the Linux zone in the range 0xf000 to 0xf8ff where  extensions  are
+       coordinated  among  all  Linux  users.  The  registry of the characters
+       assigned to the Linux zone is currently maintained by  H.  Peter  Anvin
+       <Peter.Anvin@linux.org>.
+*/
+  SetUnicodeValue(i + 0xE000, 0);
   ++i;
 endloop
 
index 5ca0f8da173556fb0f9f90e9fbb45b73e8504cc1..d11ebbbe7b85a4c10f40b4c8fc8e28e1ddaa9a28 100644 (file)
           "lilypond-feta-braces-g"
           "lilypond-feta-braces-h"
           "lilypond-feta-braces-i"
-          "lilypond-parmesan"))
+          "lilypond-parmesan"
+          ;;"lilypond"
+          ;;"bigcheese20"
+          ))
 
     (dump-page go 0)
 
index acf7ff41e1029e70e852041305872c4c207380a5..1124f65f14aab74167d241edd5839940c35ed01c 100644 (file)
@@ -343,8 +343,20 @@ possibly turned off."
          (ly:font-file-name font)))))
 
 (define-public (char->unicode-index font char)
-  (+ (case (ly:font-encoding font) 
+  ;;  (format (current-error-port) "UNICODE:~S:~S:~S\n"
+  ;;   font (ly:font-encoding font) (char->integer char))
+  ;; (force-output (current-error-port))
+  (+ (case (ly:font-encoding font)
        ((fetaMusic) (- #xe000 #x20))
        ((fetaBraces) (- #xe000 #x40))
-       (else 0))
+       ((fetaBraces) (- #xe000 #x40))
+       ;;(else 0))
+       ;; FIXME: bigcheese says FontSpecific
+       (else (if (string=? (font-family font) "bigcheese20")
+                ;;#xf000 0)))
+                ;; ugh, we must know which font from bigcheese;
+                ;; feta-proper starts at 0xe0e3
+                ;; but we cannot display feta-nummer or feta-din characters
+                ;; this way
+                #xe0e3 0)))
      (char->integer char)))
index aef6b645d6040d77f1b20129b3c9ef149ae814e4..c5689033aa156e3615ba08965bd83acabe05ee11 100644 (file)
@@ -377,7 +377,7 @@ lilypond -fgnome input/simple-song.ly
       ;; Hmm, family is bigcheese20?
       (if (string=? family "bigcheese20")
          (begin (debugf "BIGCHEESE\n")
-         "LilyPond")
+         "LilyPond, 20")
          family)))
   
   (define (pango-font-size font)
@@ -418,4 +418,4 @@ lilypond -fgnome input/simple-song.ly
       #:size-set #t
       #:text (if (char? s)
                 (char->utf8-string font s)
-                (string->utf8-string font s)))))
+                (string->utf8-string font s)))))
\ No newline at end of file