How to load/store a font

From: [at]} <Wojtek>
Date: Fri, 12 Feb 1999 19:27:27 -0800

At 02:04 PM 2/12/99, Stewart Greenhill wrote:

>In my experience, you also need to initilise the font in Views.Internalize.
>I have found that if I don't do this, the system will trap when copying the
>view to an OLE container.

Then I have another doubt: how do I store/load a font?

It is not an extension of Stores.Store, neither does it have
a ready-to-use Store/Load that I could call. Does this mean
I have to implement my own font store/load? I can do this,
but it sort of looks bad to me that BB does not provide
for storing/loading font info.

Or am I missing some methods that I could use to deal with
font persistence?

Below is the font definition that seems to imply I need
to deal with data fields "per pedes", and call Init
upon loading. Is this the way it is supposed to be?

Font = POINTER TO ABSTRACT RECORD
  typeface-: Typeface;
  size-: INTEGER;
  style-: SET;
  weight-: INTEGER;
  (f: Font) GetBounds (OUT asc, dsc, w: INTEGER), NEW, ABSTRACT;
  (f: Font) Init (typeface: Typeface; size: INTEGER; style: SET; weight:
INTEGER), NEW;
  (f: Font) IsAlien (): BOOLEAN, NEW, ABSTRACT;
  (f: Font) SStringWidth (IN s: ARRAY OF SHORTCHAR): INTEGER, NEW, ABSTRACT;
  (f: Font) StringWidth (IN s: ARRAY OF CHAR): INTEGER, NEW, ABSTRACT
END;


Wojtek
Received on Sat Feb 13 1999 - 04:29:56 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:42 UTC