XFontCache: CEDAR DEFINITIONS ~ BEGIN FontCache: TYPE ~ REF FontCacheRep; FontCacheRep: TYPE; FontCode: TYPE ~ RECORD [key: CARDINAL]; Create: PROC RETURNS [FontCache]; GetFontCode: PROC [a, b, c, d: REAL, font: REF] RETURNS [FontCode]; InterpretFontCode: PROC [fontCode: FontCode] RETURNS [a, b, c, d: REAL, font: REF]; InvalidFontCode: ERROR; Flush: PROC [font: REF]; GetCharData: PROC [fontCache: FontCache, fontCode: FontCode, char: CHAR] RETURNS [REF]; CacheMiss: SIGNAL [fontCode: FontCode, char: CHAR] RETURNS [data: REF]; LoadCharData: PROC [fontCache: FontCache, fontCode: FontCode, char: CHAR, data: REF]; END. XFontCache.mesa Michael Plass, May 5, 1983 11:22 am Makes a new font cache. Makes a new font code. FontCodes are unique across all FontCaches. The real numbers may be used to represent a transformation, and the REF may be used to point to your favorite representation of the font. Makes a new font code. FontCodes are unique across all FontCaches. The real numbers may be used to represent a transformation, and the REF may be used to point to your favorite representation of the font. May raise: Invalidates all FontCodes that refer to the given REF. Do this when you would like to get rid of unneeded font REFs. For getting the REF data associated with a given character in a given font. If the REF is not present, will raise the following signal: For preloading the cache. ΚN˜J™J™#Iunitšœ Οkœ˜%Jšœ œœ˜#Jšœœ˜Jšœ œœ œ˜(šΟnœœœ ˜!J™—š ž œœœœœ ˜CJšœˆœB™Ν—š žœœœœœ˜SJšœˆœM™ΨJšžœœ˜—šžœœœ˜Jšœu™u—š ž œœ2œœœ˜WJšœœAœ1™ˆJš ž œœœœœ˜G—šž œœ2œœ˜UJ™—Kšœ˜—…—nΞ