all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What determines the available font sizes?
@ 2005-06-06  0:19 Chris Page
  2005-06-06  9:52 ` Peter Dyballa
       [not found] ` <mailman.3503.1118052059.25862.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Chris Page @ 2005-06-06  0:19 UTC (permalink / raw)


What determines which font sizes are available to emacs? Is there some 
finite set of sizes it supports?

I'd like to use Monaco 11 on Mac OS X, but I can only seem to get 10 and 
12 pt sizes. If I define a fontset for Monaco 11, or customize a face to 
use "monaco" "110", it gets displayed the same as 10 or 12. There 
doesn't seem to be a way to access Monaco at 11 pts.

-- 
Chris Page - Software Wrangler - Dylan Pundit

 Open Source Dylan Compilers: <http://www.gwydiondylan.org/>
              Dylan Blogging: <http://homepage.mac.com/chrispage/iblog/>
                 Dylan Stuff: <http://cafepress.com/chrispage>

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

* Re: What determines the available font sizes?
  2005-06-06  0:19 Chris Page
@ 2005-06-06  9:52 ` Peter Dyballa
       [not found] ` <mailman.3503.1118052059.25862.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2005-06-06  9:52 UTC (permalink / raw)
  Cc: Emacs help


Am 06.06.2005 um 02:19 schrieb Chris Page:

> What determines which font sizes are available to emacs?

The syntax you use! These example allow the use of (almost) any size:

(create-fontset-from-mac-roman-font 
"-*-monaco-medium-r-*-*-10-*-*-*-*-*-mac-roman"   	   	     	  nil 
"10pt_monaco")
(create-fontset-from-mac-roman-font 
"-*-monaco-medium-r-*-*-11-*-*-*-*-*-mac-roman"   	   	     	  nil 
"11pt_monaco")

> Is there some finite set of sizes it supports?

With create-fontset-from-fontset-spec there certainly is. I think this 
function can only retrieve the bitmapped fonts from a font suitcase.

--
Greetings

   Pete

"A mathematician is a machine that turns coffee into theorems."

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

* Re: What determines the available font sizes?
       [not found] ` <mailman.3503.1118052059.25862.help-gnu-emacs@gnu.org>
@ 2005-06-06 10:24   ` Chris Page
  0 siblings, 0 replies; 8+ messages in thread
From: Chris Page @ 2005-06-06 10:24 UTC (permalink / raw)


In article <mailman.3503.1118052059.25862.help-gnu-emacs@gnu.org>,
 Peter Dyballa <Peter_Dyballa@Web.DE> wrote:

> Am 06.06.2005 um 02:19 schrieb Chris Page:
> 
> > What determines which font sizes are available to emacs?
> 
> The syntax you use! These example allow the use of (almost) any size:

Thanks, but as I said, I tried creating fontsets. The issue is that 
Monaco 11 isn't apparently supported.

> > Is there some finite set of sizes it supports?
> 
> With create-fontset-from-fontset-spec there certainly is. I think this 
> function can only retrieve the bitmapped fonts from a font suitcase.

Well, I suppose that's my answer, then. There is no bitmap for 11pt 
Monaco, I don't think. Then again, I'm using Aquamacs, which uses 
anti-aliased outline fonts. I suppose it's still limiting the available 
font sizes to those with bitmaps. I wonder how I might overcome that 
unfortunate limitation.

-- 
Chris Page - Software Wrangler - Dylan Pundit

 Open Source Dylan Compilers: <http://www.gwydiondylan.org/>
              Dylan Blogging: <http://homepage.mac.com/chrispage/iblog/>
                 Dylan Stuff: <http://cafepress.com/chrispage>

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

* Re: What determines the available font sizes?
@ 2005-06-08 14:58 David Reitter
  2005-06-08 15:24 ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: David Reitter @ 2005-06-08 14:58 UTC (permalink / raw)
  Cc: Peter Dyballa

Peter Dyballa:

>> Is there some finite set of sizes it supports?
>
> With create-fontset-from-fontset-spec there certainly is. I think  
> this function can only retrieve the bitmapped fonts from a font  
> suitcase.

The big question is now: how to include, say, a scalable cyrillic  
font in a font set in arbitrary font sizes?
create-fontset-from-mac-roman-font seems to support only ASCII fonts,  
as it uses create-fontset-from-ascii-font.

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

* Re: What determines the available font sizes?
@ 2005-06-08 15:03 David Reitter
  0 siblings, 0 replies; 8+ messages in thread
From: David Reitter @ 2005-06-08 15:03 UTC (permalink / raw)
  Cc: Help-gnu-emacs

> > With create-fontset-from-fontset-spec there certainly is. I think  
> this
> > function can only retrieve the bitmapped fonts from a font suitcase.
>
> Well, I suppose that's my answer, then. There is no bitmap for 11pt
> Monaco, I don't think. Then again, I'm using Aquamacs, which uses
> anti-aliased outline fonts. I suppose it's still limiting the  
> available
> font sizes to those with bitmaps. I wonder how I might overcome that
> unfortunate limitation.


You can add this to your file ~/Library/Preferens/Aquamacs Emacs/ 
Preferences.el :

(condition-case e
     (create-fontset-from-fontset-spec
      "-apple-monaco*-medium-r-normal--11-*-*-*-*-*-fontset-monaco11,
     ascii:-apple-monaco*-medium-r-normal--11-110-75-75-m-120-mac-*,
     latin-iso8859-1:-apple-monaco*-medium-r-normal--11-110-75-75- 
m-120-mac-*,
     latin-iso8859-9:-apple-monaco*-medium-r-normal--11-110-75-75- 
m-120-mac-*,
     utf-8:-apple-monaco*-medium-r-normal--11-110-75-75-m-120-mac-*,
     " nil t)
   (error (print (list "Warning: " e))))


That should give you a size 11.
Peter's solution should work, too.

- Dave

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

* Re: What determines the available font sizes?
  2005-06-08 14:58 David Reitter
@ 2005-06-08 15:24 ` Peter Dyballa
  2005-06-08 15:37   ` David Reitter
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Dyballa @ 2005-06-08 15:24 UTC (permalink / raw)
  Cc: Emacs help


Am 08.06.2005 um 16:58 schrieb David Reitter:

> Peter Dyballa:
>
>>> Is there some finite set of sizes it supports?
>>
>> With create-fontset-from-fontset-spec there certainly is. I think  
>> this function can only retrieve the bitmapped fonts from a font  
>> suitcase.
>
> The big question is now: how to include, say, a scalable cyrillic font  
> in a font set in arbitrary font sizes?
> create-fontset-from-mac-roman-font seems to support only ASCII fonts,  
> as it uses create-fontset-from-ascii-font.
>

Maybe this way:

	(create-fontset-from-fontset-spec
	"-*-monaco-medium-r-*-*-0-*-*-*-*-*-fontset-10pt_monaco,
               
latin-iso8859-1:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              latin-iso8859-2:-*-monaco  
ce-medium-r-normal--10-100-75-75-m-100-mac-*,
               
latin-iso8859-3:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
               
latin-iso8859-4:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
           cyrillic-iso8859-5:-*-monaco  
cy-medium-r-normal--10-100-75-75-m-100-mac-*,
              
arabic-iso8859-6:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
               
greek-iso8859-7:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
hebrew-iso8859-8:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
               
latin-iso8859-9:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
latin-iso8859-10:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
latin-iso8859-11:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
latin-iso8859-12:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
latin-iso8859-13:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
latin-iso8859-14:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
latin-iso8859-15:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
              
latin-iso8859-16:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
               
mac-roman-lower:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
               
mac-roman-upper:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
roman,
        
mule-unicode-0100-24ff:-*-monaco-medium-r-normal--10-100-75-75-m-100- 
mac-roman,
        
mule-unicode-2500-33ff:-*-monaco-medium-r-normal--10-100-75-75-m-100- 
mac-roman,
        
mule-unicode-e000-ffff:-*-monaco-medium-r-normal--10-100-75-75-m-100- 
mac-roman,
                    
iso10646-1:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac-roman,
                         
ascii:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac-roman" )

Since my own cyrillic is quite bad, I can only tell you that my ISO  
8859-5 test file looks in Carbon Emacs 22 in this fontset and in GNU  
Emacs 23 (Unicode Emacs, X11) in any other fontset quite alike ... (ISO  
8859-2 not!)

--
Mit friedvollen Grüßen

   Pete

"engineer: a mechanism for converting caffeine into designs"

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

* Re: What determines the available font sizes?
  2005-06-08 15:24 ` Peter Dyballa
@ 2005-06-08 15:37   ` David Reitter
  2005-06-08 19:22     ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: David Reitter @ 2005-06-08 15:37 UTC (permalink / raw)
  Cc: Emacs help


On 8 Jun 2005, at 16:24, Peter Dyballa wrote:
>
> Maybe this way:
>
>     (create-fontset-from-fontset-spec
>     "-*-monaco-medium-r-*-*-0-*-*-*-*-*-fontset-10pt_monaco,
>              latin-iso8859-1:-*-monaco-medium-r- 
> normal--10-100-75-75-m-100-mac-roman,


Sure that'll include the font, but not in an arbitrary size, will it?
Arbitrary as in: I set the size, not as in: Emacs or whoever choses  
some size.

How do I set the size for it then?

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

* Re: What determines the available font sizes?
  2005-06-08 15:37   ` David Reitter
@ 2005-06-08 19:22     ` Peter Dyballa
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2005-06-08 19:22 UTC (permalink / raw)
  Cc: Emacs help


Am 08.06.2005 um 17:37 schrieb David Reitter:

> On 8 Jun 2005, at 16:24, Peter Dyballa wrote:
>>
>> Maybe this way:
>>
>>     (create-fontset-from-fontset-spec
>>     "-*-monaco-medium-r-*-*-0-*-*-*-*-*-fontset-10pt_monaco,
>>               
>> latin-iso8859-1:-*-monaco-medium-r-normal--10-100-75-75-m-100-mac- 
>> roman,
>
>
> Sure that'll include the font, but not in an arbitrary size, will it?
> Arbitrary as in: I set the size, not as in: Emacs or whoever choses  
> some size.
>
> How do I set the size for it then?
>

I hoped you would do some experiments with the fontset definition -- I  
did some time ago when I tried to re-write and enhance my own fontset  
definitions and so I found that Cyrillic and Central European glyphs  
could scale from some points (almost invisible 5) up to 50. The other  
Latin glyphs only scaled in discrete steps, hence I think of those  
bloody bitmaps! One cure could be to clean up Monaco.dfont from the  
bitmapped fonts ...


There can be other reasons too. Pfaedit tells me:

	Warning: Glyph 284 is named Gcedilla which should mean it is mapped to
	 Unicode U+0122, but Glyph 360 already has that encoding.
	Bad lookup table format=8, first=32 cnt=778 total glyphs in font=810

Could be this makes the use of the scalable TT glyphs impossible ...

Here's one of my stripped-down lines:

           cyrillic-iso8859-5:-*-monaco  
cy-medium-r-normal--63-*-*-*-m-*-mac-*,

Bitstream Courier, i.e.  
-*-courier-medium-r-normal--*-*-*-*-m-*-mac-roman, is easy scalable.

--
Greetings

   Pete

The day Microsoft makes something that doesn't suck is the day they  
start selling vacuum cleaners.

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

end of thread, other threads:[~2005-06-08 19:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-08 15:03 What determines the available font sizes? David Reitter
  -- strict thread matches above, loose matches on Subject: below --
2005-06-08 14:58 David Reitter
2005-06-08 15:24 ` Peter Dyballa
2005-06-08 15:37   ` David Reitter
2005-06-08 19:22     ` Peter Dyballa
2005-06-06  0:19 Chris Page
2005-06-06  9:52 ` Peter Dyballa
     [not found] ` <mailman.3503.1118052059.25862.help-gnu-emacs@gnu.org>
2005-06-06 10:24   ` Chris Page

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.