Mercurial > emacs
diff src/nsfont.m @ 102004:e1a5d89a91dd
* nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog. \n \n* nsmenu.m (pop_down_menu): Check popup_activated_flag. \n(ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let \npop_down_menu do the cleanup work as it is always called. (Bug#2154) \n \n* nsfont.m (nsfont_make_fontset_for_font): For now, don't try to \nset fontset font for 'mathematical-' sub-scripts. (Bug #2218)\n
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Fri, 13 Feb 2009 13:30:35 +0000 |
parents | e038c1a8307c |
children | 934376007cef |
line wrap: on
line diff
--- a/src/nsfont.m Fri Feb 13 12:57:45 2009 +0000 +++ b/src/nsfont.m Fri Feb 13 13:30:35 2009 +0000 @@ -1235,7 +1235,13 @@ font_info->name, family, SDATA (SYMBOL_NAME (scripts[i]))); - Fset_fontset_font (name, scripts[i], famAndReg, Qnil, Qnil); + /* TODO: Some of the "scripts" in script-representative-chars are + actually only "sub-scripts" which are not fully defined. For + these, calling set_fontset_font generates an abort. Try to + guess which ones these are and avoid it. */ + if (strstr (SDATA (SYMBOL_NAME (scripts[i])), "mathematical-") + != SDATA (SYMBOL_NAME (scripts[i]))) + Fset_fontset_font (name, scripts[i], famAndReg, Qnil, Qnil); free (family); } else