From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Several suggestions for image support Date: Fri, 23 Apr 2004 09:33:42 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200404230033.JAA10583@etlken.m17n.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Fri_Apr_23_09:33:42_2004-1" X-Trace: sea.gmane.org 1082681424 18257 80.91.224.253 (23 Apr 2004 00:50:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2004 00:50:24 +0000 (UTC) Cc: dak@gnu.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 23 02:50:10 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGotO-0001yO-00 for ; Fri, 23 Apr 2004 02:50:10 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGotN-0002NQ-00 for ; Fri, 23 Apr 2004 02:50:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGooZ-0002Rd-VH for emacs-devel@quimby.gnus.org; Thu, 22 Apr 2004 20:45:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BGogD-0000jK-Nl for emacs-devel@gnu.org; Thu, 22 Apr 2004 20:36:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BGofT-0008Pb-11 for emacs-devel@gnu.org; Thu, 22 Apr 2004 20:36:11 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGodb-00078q-7r; Thu, 22 Apr 2004 20:33:51 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/8.11.6) with ESMTP id i3N0Xh803188; Fri, 23 Apr 2004 09:33:43 +0900 (JST) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/8.11.6) with ESMTP id i3N0Xg918765; Fri, 23 Apr 2004 09:33:42 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA10583; Fri, 23 Apr 2004 09:33:42 +0900 (JST) Original-To: storm@cua.dk In-reply-to: (storm@cua.dk) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22054 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22054 --Multipart_Fri_Apr_23_09:33:42_2004-1 Content-Type: text/plain; charset=US-ASCII In article , storm@cua.dk (Kim F. Storm) writes: > With my change, if you have just ONE character in the frame default > font in the line, it will be shown exactly as before. Also, if the > line is empty, ie. only contains the newline, it is also shown as > before. > The only time you will see my change in effect is if you have a line > where ALL glyphs are lower than the default frame line height; in that > case, the line is only as high as the tallest character on that line. With the latest code, when I do this: (make-face 'small) (set-face-attribute 'small nil :height 0.5) (insert (propertize "abc" 'face 'small) "\n") the line height gets shorter even if the tailing newline doesn't have the face `small'. This result in that when I type C-k at the beggining of that line, the line gets taller, which is counter intuitive. I think the height of the space glyph for the tailing newline should be the default frame line height in the above case, and the line height must be desided by all glyphs including the tailing space. Then, to have a short line, we should do: (insert (propertize "abc\n" 'face 'small)) In this case, C-k as above doesn't change the line height because we still have a newline of `small' face. By the way, it seems that the current code doesn't draw a hollow cursor correctly. The bottom line of the rectangle is not drawn (see the attached image). --- Ken'ichi HANDA handa@m17n.org --Multipart_Fri_Apr_23_09:33:42_2004-1 Content-Type: image/png Content-Disposition: inline; filename="temp.png" Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAEUAAABlEAIAAADE02ULAAACt0lEQVR42u2dQXKDMAxFm05PkBPk /qfKCViwZtEFG88weGQs4Sfz36LTSVwV/JDBtpq+1nVd1/XHwLZt27JYWr7f7/fns3+/LMvy/Vp+ Shz59Q03n5j9jMrzuhM3PaNOYG6cs2dnjrwh8Ncfoj9v7BEs4uvReiLcP3Q7Z0/rQbeqrbe3RMs1 CDtkjxde13U9WnmrP2tTvj72YQekx4Klg8be+Xqy83jkg/XsB2R5eLV3eq7hq46znvqgcUYpyTfy /fgeoYMeS+f2n5jlnhHRQWMJmffYVd0/Jx+7CtCK2+DWn0P9N9Xorp9q3mPppmt3qf5oES0jeEWs WAsvQu49wgvpQSM9aKQHjfSgkR400oNGetBID5rAJdFra1+5liyjUZ0bGrcVa6/rXVJLVOeGBlHn dhbtWn1BfVOjv1LON1o9wuA6tzjsJVf2dyOi1dskK6SyUM8/35qF6Lq7aec99+RxdN3dhNnT0x20 urvAeU9efB8fegDVudEg1N0NrnOjQau7A9W50SDU3Q2uc6NBq7tTnRuaaec9cyA9aKQHjfSgSbOo 88ztvjR6dno6N+ODvgY3NIF6Ml6tNJQ9aC7ee84yo74nWG/ZGvMJNOupL6Ef3z1rX75uiTm6o8bQ PLjVd+8t7ft/43NwGNyyr1KTcR7chC/hH1Z554fxzUdz9pztil57vd7G8u7cpNmO6x9UMw7Lmpai SZM9z0TZg0Z60EgPGulBg9PjVUY7x1944/SIElytQa5pYzTKHjThGwo9//RCmZRgxfrJOOg5Xu/l 12MbYcctezQQReCgR2Li0JMbGulBIz1oHqEn7/rbtHrmeGDRZjaaabNnDqQHjfSgkR400oNGetBI DxrpQSM9aKQHjfSgkR400oNGetBIDxrpQSM9aKQHjfSgkR400oNGetBIDxrpQfMPxiSknxSU/HQA AABKdEVYdHNpZ25hdHVyZQBiNWUzZjA3MWQ1OTc5N2E5MDdmNTUxYjE1MDIxZDg0MjZiMGJkYzc4 ZDAxMmFmNGY5Yjk2ZWIwY2U3OTkyNTk1dxwFUAAAAABJRU5ErkJggg== --Multipart_Fri_Apr_23_09:33:42_2004-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --Multipart_Fri_Apr_23_09:33:42_2004-1--