T.R | Title | User | Personal Name | Date | Lines |
---|
3317.1 | You ask for it, you got it... | LEOVAX::TREGGIARI | | Fri Sep 07 1990 13:03 | 15 |
|
> If you have previously loaded, say 12 point Courier, and another part of
> the client loads it again (but may have wanted another face or size)
> does the Xserver say "Oh, I've got that already, I'll just pass back a
> new reference to it and bump the reference count"; or does it really go
> out and load in another copy of that font?
If you ask for a different face or size, you MUST get a new font loaded. The
information is not the same (per character metrics, etc...).
But, if you ask for *exactly* the same font twice, you will get it twice.
And they ain't cheap. It's ~3K bytes of data that get fetched over the wire
and stored in your virtual memory.
Leo
|
3317.2 | << When the right answer's the wrong answer! >> | WONDER::COMMO | I'll find no bug before its time! | Fri Sep 07 1990 16:17 | 6 |
| Thanks again Leo. That's what I wanted to know. Your input is certainly
impetus to "do the right" thing. Looks like I'll need a font module
now. Oh well...
Cheers,
- norm
|
3317.3 | | DECWIN::FISHER | Locutus: Fact or Fraud? | Mon Sep 10 1990 13:49 | 9 |
| Just to make sure this is all clear, I believe Leo was answering from the
toolkit perspective. I'm assuming he means that a new font info structure
etc is allocated on the client side.
On the server, however, we know that you have asked for the same font and
will just set up another pointer from the font id to the same data in the
server. We have enough info to do that; Leo does not.
Burns
|
3317.4 | My answer was from the Xlib perspective | LEOVAX::TREGGIARI | | Mon Sep 10 1990 18:18 | 14 |
| > Just to make sure this is all clear, I believe Leo was answering from the
> toolkit perspective.
Actually, I was answering from the Xlib perspective.
> I'm assuming he means that a new font info structure
> etc is allocated on the client side.
Yes.
Toolkit applications generally use the "string-to-font" converters which
ARE smart enough to only load a font once.
Leo
|