all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Displaying mathematical symbols with the apropriate font
@ 2008-08-13 14:39 Kaloian Doganov
  0 siblings, 0 replies; only message in thread
From: Kaloian Doganov @ 2008-08-13 14:39 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I would like to use mathematical symbols in an Emacs text buffer -- for
example: 𝑛 U+1D45B.  Unfortunately this symbol (an all others in the
same Unicode block) is displayed in Emacs as a Chineese ideograph,
although the file written on disk is perfectly encoded in UTF-8 and the
character in question is successfuly interpreted as U+1D45B in other
programs.  So, I guess, this is just a display-related problem in Emacs.

C-u C-x = on the character shows:

/------------------------------------------------
        character: 𝑛 (119899, #o352133, #x1d45b)
preferred charset: unicode (Unicode (ISO10646))
       code point: 0x1D45B
           syntax: w 	which means: word
      buffer code: #xF0 #x9D #x91 #x9B
        file code: #xF0 #x9D #x91 #x9B (encoded by coding system utf-8-emacs)
          display: by this font (glyph code)
    x:-arphic-ar pl ukai cn-book-r-normal--16-116-100-100-p-160-gb18030.2000-0 (#x1D45B)

Character code properties: customize what to show
  name: MATHEMATICAL ITALIC SMALL N
  general-category: Ll (Letter, Lowercase)
  canonical-combining-class: 0 (Spacing, split, enclosing, reordrant, and Tibetan subjoined)
  bidi-class: L (Left-to-Right)
  decomposition: (<font> 110) (<font> 'n')
  mirrored: N

There are text properties here:
  auto-composed        t
  fontified            t
  rear-nonsticky       t
\------------------------------------------------

It looks like for some reason Emacs does not use a suitable font for
this character.  Then I've tried to augment the current fontset with a
range:

(set-fontset-font (query-fontset (frame-parameter nil 'font))
		  (cons (decode-char 'ucs #x1d400)
			(decode-char 'ucs #x1d7ff))
		  '("dejavu sans" . "iso10646-1"))

But this does not have any visible effects.  C-u C-x = still shows the
same font as cited above.  What should I do to display this character
properly?

I am using GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
of 2008-07-16 on tzotzolana, modified for gNewSense.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-13 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13 14:39 Displaying mathematical symbols with the apropriate font Kaloian Doganov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.