Commit Graph
27 Commits
Author SHA1 Message Date
sluicebox b578f5be7b GRAPHICS: Expose Font leading and descent values
The leading value in Macintosh fonts is the space between lines,
defined as the space between a descent line and the ascent line
below it. Clients need this to draw text and calculate its height
as classic Macintosh did.
2022-11-06 23:05:20 -08:00
sluicebox 2775987cba MACGUI: Expose font families in MacFontManager
MacFontManager didn't have a mechanism to report which fonts it loaded
from an external resource. It also requires that any fonts that aren't
built-in be explicitly registered by name by the client before they can
be used. This combination meant that a client couldn't load fonts from
an external file and use them by their properties (id / size / style).

SCI contains Mac fonts in its executable along with a table that maps
each SCI font id to a Mac font id and size. The font name isn't a part
of this since the Classic Mac Toolbox API took id / size / style as
input when drawing text.

Now MacFontManager exposes the font families it has loaded along with
their names. This allows a client to see which fonts were loaded,
register them by name, and proceed to use them with the existing API.
2022-11-06 23:05:20 -08:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
ysj1173886760 822ca12ab2 GRAPHICS: MACGUI: draw the underLine in kerning area when we are dealing with underLine font. 2021-07-23 17:06:38 +08:00
ysj1173886760 3d0b7d5130 GRAPHICS: MACGUI: modify the parameter of scaleFont in macFont 2021-07-23 17:06:38 +08:00
ysj1173886760 63b9ae3679 GRAPHICS: MACGUI: enhance italic font. Fix the implementation for generating slant fonts. 2021-07-22 21:42:19 +08:00
ysj1173886760 79755cfb02 GRAPHICS: MACGUI: implement basic italic supporting. 2021-07-22 21:42:18 +08:00
ysj1173886760 296750d5de GRAPHICS: MACGUI: implement reading styleWidths and glyph-width table for macfont 2021-07-20 16:49:01 +08:00
Thierry Crozat a3f3d71c57 GRAPHICS: Expose ascent value in font class 2021-03-23 20:25:23 +00:00
Eugene Sandulenko 930cf4df03 GRAPHICS: Generate Mac outline fonts 2020-03-22 17:41:21 +01:00
Eugene Sandulenko 6774d7aced GRAPHICS: MACGUI: Initial code for generating outlined fonts 2020-03-22 01:39:29 +01:00
Eugene Sandulenko fc00b78a48 GRAPHICS: FONTS: Implement generation of bold fonts 2020-01-07 21:57:12 +01:00
Eugene Sandulenko b5a95d4783 GRAPHICS: FONTS: Made scaling form MacFONT as a step 2020-01-07 21:57:12 +01:00
Eugene Sandulenko 90c305c904 GRAPHICS: FONTS: Use better algorithm for MacFONT scaling added debug output 2020-01-07 21:57:12 +01:00
Eugene Sandulenko bfb757c3c0 GRAPHICS: Load Mac font heights too (still unused) 2017-08-01 10:42:21 +02:00
Eugene Sandulenko b4a31646ff GRAPHICS: Added missing include 2017-01-30 10:10:07 +01:00
Eugene Sandulenko e2b1cd5c80 GRAPHICS: Implemented test for MacFont scaling 2017-01-25 12:44:24 +01:00
Eugene Sandulenko b84ab35363 GRAPHICS: Plug MacFont scaler in 2017-01-24 23:33:59 +01:00
Eugene Sandulenko d2e31b1869 GRAPHICS: Initial code for scaling MacFonts 2017-01-19 21:22:30 +01:00
Eugene Sandulenko 6fa46810f5 GRAPHICS: Encapsulate all MacFONTFont class variables into a single struct 2017-01-19 11:11:05 +01:00
Eugene Sandulenko 4ede54e6b0 GRAPHICS: Rename MacFont to MacFONTFont to avoid clashed 2017-01-17 20:30:32 +01:00
Eugene Sandulenko 1fea15ac7b GRAPHICS: Implementing kerning calculation for MacFonts 2017-01-17 18:44:27 +01:00
Eugene Sandulenko be07b004e0 GRAPHICS: Split out MacFontFamily class out of MacFont 2017-01-17 18:14:02 +01:00
Eugene Sandulenko 4236d93aae GRAPHICS: Fix FOND loading 2017-01-17 10:56:33 +01:00
Eugene Sandulenko 13422c3151 GRAPHICS: More work on FOND loading 2017-01-17 00:33:34 +01:00
Eugene Sandulenko aef95a6964 GRAPHICS: First part for reading FOND Mac resources 2017-01-16 22:54:16 +01:00
Eugene Sandulenko 5d18151b55 GRAPHICS: Initial code for reading FONT Mac resources 2017-01-16 19:21:50 +01:00