+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.
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");
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
(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)))
;; Hmm, family is bigcheese20?
(if (string=? family "bigcheese20")
(begin (debugf "BIGCHEESE\n")
- "LilyPond")
+ "LilyPond, 20")
family)))
(define (pango-font-size font)
#: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