[gs-cvs] gs/src

Igor Melichev igor at casper.ghostscript.com
Wed Jan 29 03:00:44 PST 2003


Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv18667/gs/src

Modified Files:
	int.mak 
Log Message:
Enhancing the resource machinery with mapping CID fonts to True Types.

DETAILS:

This patch should not change any behavior if a new file
gs/lib/cidttmap is not added. Normally it is not.

Adding 2 new files gs_fntem.ps and gs_cidtt.ps and reorganizing
old files gs_cidfn.ps, gs_fapi.ps, gs_resmp.ps with them.
This moves a part of FAPI support to a more general level.
The moved stuff is shared with the FAPI and the new CID font mapper.

After this change Ghostscript can load Unicode True Type fonts
as a substitution to a CIDFontType 2 and render it.
At least the Windows font PMINGLIU.TTF succeeds.
But the implementation is very incomplete :

1. The CID to GID mapping is fully wrong.

2. Entire True Type fonts are loaded into VM.

3. The CID font to CID font mapper and
   the True Type to CID font mapper use different map files -
   cidfmap and cidttmap.

All these 3 solutions are temporary and to be improved later.

To involve the new feature, create a new file gs/lib/cidttmap,
and put records to there of the following format :

/ShinGo-Bold  << /FileType /TrueType /Path (F:/WIN2000/Fonts/PMINGLIU.TTF) /CSI [(Japan1) 2] /SubstNWP /Japan1 >> ;

It is similar to gs/lib/FAPIcidfmap, see Use.htm about the latter.

This patch does not include a change to documentation,
because it is too early to announce it to users.


Index: int.mak
===================================================================
RCS file: /cvs/ghostscript/gs/src/int.mak,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- int.mak	29 Jan 2003 09:19:20 -0000	1.95
+++ int.mak	29 Jan 2003 11:00:42 -0000	1.96
@@ -1413,7 +1413,7 @@
 	$(ADDMOD) $(PSD)cidfont -include $(PSD)psf1read $(PSD)psl2int
 	$(ADDMOD) $(PSD)cidfont -include $(PSD)type2 $(PSD)type42 $(PSD)zfrsd
 	$(ADDMOD) $(PSD)cidfont -oper zfcid0 zfcid1
-	$(ADDMOD) $(PSD)cidfont -ps gs_cidfn gs_cidcm gs_cidfm
+	$(ADDMOD) $(PSD)cidfont -ps gs_cidfn gs_cidcm gs_cidfm gs_fntem gs_cidtt
 
 $(PSOBJ)zcid.$(OBJ) : $(PSSRC)zcid.c $(OP)\
  $(gxcid_h) $(errors_h) $(icid_h) $(idict_h) $(idparam_h)
@@ -1787,7 +1787,7 @@
  $(PSD)fapiu$(UFST_BRIDGE).dev $(PSD)fapif$(FT_BRIDGE).dev
 	$(SETMOD) $(PSD)fapi $(PSOBJ)zfapi.$(OBJ)
 	$(ADDMOD) $(PSD)fapi -oper zfapi
-	$(ADDMOD) $(PSD)fapi -ps gs_fapi
+	$(ADDMOD) $(PSD)fapi -ps gs_fntem gs_fapi
 	$(ADDMOD) $(PSD)fapi -include $(PSD)fapiu$(UFST_BRIDGE)
 	$(ADDMOD) $(PSD)fapi -include $(PSD)fapif$(FT_BRIDGE)
 




More information about the gs-cvs mailing list