Opened 18 years ago
Closed 16 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 by , 18 years ago
Owner: | changed from | to
---|---|
Priority: | blocker → minor |
Type: | defect → enhancement |
comment:2 by , 18 years ago
comment:3 by , 18 years ago
Owner: | removed |
---|
comment:4 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
At present I see no advantage in doing this since it appears that you still need to set this in registry anyway.
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.