]> git.eshelyaron.com Git - emacs.git/commit
Fix average font width calculation on NS.
authorChong Yidong <cyd@gnu.org>
Thu, 16 Aug 2012 06:40:57 +0000 (14:40 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 16 Aug 2012 06:40:57 +0000 (14:40 +0800)
commit179dad8ed18677af1251493751e3c9de4c80ee43
tree921010ec2d8d06e358b2dca7e93f270ae1ab973e
parent032a42c88d421ee434e783e29bf2cde3d6a81e7b
Fix average font width calculation on NS.

* src/nsfont.m (nsfont_open): Similar to the Xft backend, set
min_width to space_width and average_width to the average over
printable ASCII characters.
(ns_char_width): Code cleanup.
(ns_ascii_average_width): New utility function.
src/nsfont.m
src/nsterm.h