all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Where is a character presence tested in a font?
@ 2012-07-15 15:44 Óscar Fuentes
  2012-07-15 16:22 ` Eli Zaretskii
  2012-07-15 18:36 ` Štěpán Němec
  0 siblings, 2 replies; 5+ messages in thread
From: Óscar Fuentes @ 2012-07-15 15:44 UTC (permalink / raw)
  To: emacs-devel

About two years ago I reported some problems with not displaying some
characters with certain font and Jason Rumney hinted that it could be a
problem with how the test for existence of those characters is done.

I know nothing about font handling but I'll like to try to improve the
current status anyway. Could someone point me to the source code (or API
name) where Emacs on MS Windows tests for the presence of a given
character on a font?

This is an excerpt of the discussion, with Jason's response below:

> Some characters display fine on GNU/Linux but not on Windows. An example 
> is FISHEYE (?\u25c9) with the Consolas font. Apparently, that font does 
> not include that character. In GNU/Linux Emacs simply uses DejaVu for 
> displaying the character, but not on Windows, where a white space is 
> displayed (the Windows machine also has DejaVu installed.) 
> 
> Is this a known limitation or a bug? 
> 
>      uniscribe:-outline-Consolas-normal-normal-normal-mono-20-*-*-*-c-*-iso10646-1 (#x03) 
>     

The font is claiming to have that character in position 3 in the glyph 
table. I've also seen the same thing with fonts claiming position 1.   
There is nothing in the documentation for opentype or the font related 
Windows API functions that suggests that there is anything special about 
those glyph indexes, or that it is safe to assume that they mean a 
character is missing from the font.  Currently I think we only treat a 
return of 0 as indicating that the character is missing, as that is 
reserved by the truetype and opentype specs for the character ".notdef".




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-16  2:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-15 15:44 Where is a character presence tested in a font? Óscar Fuentes
2012-07-15 16:22 ` Eli Zaretskii
2012-07-16  2:46   ` Jason Rumney
2012-07-15 18:36 ` Štěpán Němec
2012-07-16  2:49   ` Jason Rumney

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.