From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "William Payne" Newsgroups: gmane.emacs.help Subject: Re: font-locking..fails to set certain strings to bold/italics Date: Sat, 24 Apr 2004 16:05:21 +0200 Organization: Island, Linkoping University, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1082816272 31416 80.91.224.253 (24 Apr 2004 14:17:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Apr 2004 14:17:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 24 16:17:42 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHNyQ-0004Bi-00 for ; Sat, 24 Apr 2004 16:17:42 +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 1BHNxf-0003Ko-7E for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Apr 2004 10:16:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.sunet.se!news01.sunet.se!news.island.liu.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 65 Original-NNTP-Posting-Host: astmatix.ida.liu.se Original-X-Trace: news.island.liu.se 1082815518 10053 130.236.186.15 (24 Apr 2004 14:05:18 GMT) Original-X-Complaints-To: abuse@island.liu.se Original-NNTP-Posting-Date: Sat, 24 Apr 2004 14:05:18 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Original-Xref: shelby.stanford.edu gnu.emacs.help:122662 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17951 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17951 "Jesper Harder" wrote in message news:m3ekqe9ntf.fsf@defun.localdomain... > "William Payne" writes: > > > My problem is that it only sets the color, it fails to set certain > > types of "strings" to bold/italic as it should. I have been making a > > lot of changes lately to my .emacs-file but I haven't touched this > > part and it used to work. Has it to do with me adding a default > > font? I do that like this: > > > > (if (eq window-system 'w32) > > > > Please help me! I really would like to know why it stopped working. > > See the entry about italics in the Emacs on Windows FAQ: > > > > -- > Jesper Harder Thanks for your reply, Jesper. I have decided that I don't want italic comments and strings when I program anymore, but I do want to use bold for certain things, language keywords being one. Using the FAQ, I have been trying to get it to work, but it's not really working. The settings I will post below yield bold strings that doesn't appear wide enough, the last characters seems cut-off..I can post a screenshot if you want. I have the following settings now: (if (eq window-system 'w32) (progn (add-to-list 'load-path "c:/emacs-21.3/cc-mode-5.30.8") (setq w32-enable-synthesized-fonts t) (set-face-font 'bold "-raster-Courier-bold-r-normal-normal-16-120-96-96-c-*-iso8859-1") (set-default-font "-raster-Courier-normal-r-normal-normal-16-120-96-96-c-*-iso8859-1") (w32-send-sys-command ?\xf030) ; Start as maximized. Or use $ emacs --fullscreen )) [snip] (custom-set-variables) (custom-set-faces '(font-lock-comment-face ((t (:foreground "Green")))) '(font-lock-reference-face ((((class color) (background light)) (:foreground "LightGreen")))) '(font-lock-string-face ((t (:foreground "Gray")))) '(font-lock-keyword-face ((t (:bold t :foreground "Cyan")))) '(font-lock-constant-face ((t (:foreground "Yellow")))) '(font-lock-type-face ((t (:bold t :foreground "White")))) '(font-lock-variable-name-face ((t (:foreground "Yellow")))) '(font-lock-function-name-face ((t (:foreground "Cyan")))) '(font-lock-builtin-face ((t (:bold t :foreground "LightGreen"))))) These settings sets the font correctly and sets the types I want bold to bold, but as I explained above, something is not right because all bold words are cut off at the end (you can hardly see the last character). Please help me solve this. / William Payne