delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/24/08:52:06

Date: Mon, 24 Mar 1997 13:31:03 GMT
Message-Id: <199703241331.NAA09934@mailhost.sm.ic.ac.uk>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: p DOT dixon AT ic DOT ac DOT uk (Paul Dixon)
Subject: Win31 port of Allegro TTF2PCX
Cc: shawn AT talula DOT demon DOT co DOT uk

As I promised a week ago I have ported Shawn's TTF2PCX to a Win3.1 compiler
The revised version is at 

ftp://neonatal.sm.ic.ac.uk/ttf2pcx

both as source, as a win3.1 executable and as a zip archive containing both.
To avoid confusion the programme has been renamed ttf2pc16.exe

I _think_ the programme does what is intended - I have access only to Win3x
and WinNT351 and the Win95 version does not run on either of these
platforms. (also to date I have not had any actual need of the programme
myself - I just got the impression the port might help some people who might
one day be in a position to return the favour!)

Paul
-----------------excerpt from revised README-----------------------------------
This version modified to run under Windows 3.1, and built using MSVC++1.0.
March 1997
Changes are:

New programme definition file TTF2PC16.DEF and makefile TTF2PC16.MAK to create
executable renamed as TTF2PC16.EXE

Amendments to resource file TTF2PCX.RC to reduce to syntax and options
supported 
by Visual C++ version 1.0

Changes to TTF2PCX.CPP to remove use of / support for 3D controls
 
Amendment to STDAFX.H to #include <malloc.h> (needed by _halloc / _hfree) and to
remove <afxcmn.h> (which did not exist in MSVC 1.0)

Changes to characte(r).h to change ints to long, char * to char __huge *,
and to use _halloc / _hfree for bitmap memory 

Changes to TTF2PCXD.CPP to remove use of _T() macro (not sure what it did
but not exist in MSVC 1.0), changes to EnumFontFamilies() call and callback
required by changes in the library API, change various 'int's to 'long' and
'char *' to 'char __huge *'

Changes to CHARACTE(R).CPP to change various 'int's to 'long' and 'char *'
to 'char __huge *', use _halloc / _hfree for buffers, changes to bitmap
drawing code to work around changes in the library API, also fixed what
appears to be a bug (text background mode not set to transparent - on Win31
this means all characters appear as solid white rectangle sized to bounding
rectangle, and on WinNT351 the 32 bit (Win95) programme also behaves like this.

Paul Dixon, 
p DOT dixon AT ic DOT ac DOT uk
------------------------------------------------------------------------
Paul Dixon                                   Email: p DOT dixon AT ic DOT ac DOT uk
Software Engineer                              tel:   +44 (171) 725 1098
Academic Dept of Paediatrics                   fax:   +44 (171) 725 6284
St Mary's Hospital Medical School
 (a constituent college of 
                     Imperial College of Science, Technology & Medicine)
Norfolk Place, London W2 1PG, UK
------------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019