Opened 13 years ago

Closed 11 years ago

#1 closed enhancement (wontfix)

Use Innotek FT2LIB in FM2

Reported by: Gregg Young 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, DisableFt2Lib(), 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 (4)

comment:1 Changed 13 years ago by Gregg Young

Owner: changed from StevenHL to Gregg Young
Priority: blockerminor
Type: defectenhancement

comment:2 Changed 13 years ago by Gregg Young

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.

comment:3 Changed 13 years ago by Gregg Young

Owner: Gregg Young deleted

comment:4 Changed 11 years ago by Gregg Young

Resolution: wontfix
Status: newclosed

At present I see no advantage in doing this since it appears that you still need to set this in registry anyway.

Note: See TracTickets for help on using tickets.