Ticket #1 (new enhancement)

Opened 21 months ago

Last modified 18 months ago

Use Innotek FT2LIB in FM2

Reported by: gyoung Owned by:
Priority: minor Milestone:
Component: fm/2 base Version:
Keywords: Cc:

Description

Globally activate the font engine on font engine enabled systems. http://www.edm2.com/index.php/Ft2lib

What I recommend is to use DosLoadModule? and DosQueryProcAddr? to conditionally load and enable the library. This also needs a settings page entry before it can go into production along with code to disable the library when the setting is toggled off.

The enable/disable code should to be wrapped in utility function rather than being done in-line.

The enable code needs to go into InitFM3DLL() in init.c and should be similar to

If lib wanted

EnableFT2Lib()

EnableFT2Lib() will look something like

Try to load library If not loaded

complain

Else

Try to get address

If fail

complain

Else

enable remember enabled

The disable function, DisableFt?2Lib(), will look something like

If enabled

Try to load library If not loaded

complain

Else

Try to get address If fail

complain

Else

disable remember disabled unload library unload library (since loaded by enable too)

For an example of how to use DosLoadModule? etc., see the code near line 1819 of misc.c.

Change History

Changed 21 months ago by gyoung

  • owner changed from StevenHL to gyoung
  • priority changed from blocker to minor
  • type changed from defect to enhancement

Changed 21 months ago by gyoung

There is a runtime cost to using anti-aliased fonts. You need to get the CPU cycles to do the anti-aliasing from somewhere. The long-term solution is to optimize window redraws to avoid wasting CPU cycles.

Changed 18 months ago by gyoung

  • owner gyoung deleted
Note: See TracTickets for help on using tickets.