Re: [ft-devel] Problem with Type 42 incremental downloading font

2005-12-03 Thread Werner LEMBERG

 A little bit late but here's the fix without touching
 FT_New_Meory_Face.

Applied, thanks!


Werner


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Problem with Type 42 incremental downloading font

2005-12-02 Thread Taek Kwan(TK) Lee
A little bit late but here's the fix without touching FT_New_Meory_Face.

TK
---
--- t42objs.c2005-08-15 16:05:56.0 -0400+++ t42objs_1.c2005-11-28 15:00:42.0 -0500@@ -259,11 +259,20 @@ root-available_sizes = 0; /* Load the TTF font embedded in the T42 font */
- error = FT_New_Memory_Face( FT_FACE_LIBRARY( face ),- face-ttf_data,- face-ttf_size,- 0,- face-ttf_face );
+ {+ FT_Open_Args args;++ args.flags = FT_OPEN_MEMORY;+ args.memory_base = face-ttf_data;+ args.memory_size = face-ttf_size;+ if(num_params){+ 
args.flags |= FT_OPEN_PARAMS;+ args.num_params = num_params;+ args.params = params;+ }+ error = FT_Open_Face( FT_FACE_LIBRARY( face ), args, 0, face-ttf_face);
+ }+  if ( error ) goto Exit;-
___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Problem with Type 42 incremental downloading font

2005-11-22 Thread Werner LEMBERG

 --- freetype.h2005-08-15 16:05:44.0 -0400
 +++ freetype_1.h  2005-11-21 15:49:16.0 -0500
 @@ -1875,7 +1875,9 @@
const FT_Byte*  file_base,
FT_Long file_size,
FT_Long face_index,
 -  FT_Face*aface );
 +  FT_Face*aface,
 +  FT_Int  num_params,
 +  FT_Parameter*   params );

This patch isn't possible.  We won't change the public API.

 --- t42objs.c 2005-08-15 16:05:56.0 -0400
 +++ t42objs_1.c   2005-11-21 16:01:59.0 -0500
 @@ -263,7 +263,9 @@
  face-ttf_data,
  face-ttf_size,
  0,
 -face-ttf_face );
 +face-ttf_face,
 +num_params,
 +params );
  if ( error )
goto Exit;

FT_New_Memory_Face is just a small wrapper around FT_Open_Face This
should be rewritten to use FT_Open_Face directly.  Can you do that?


Werner


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Problem with Type 42 incremental downloading font

2005-11-17 Thread mpsuzuki
Thanks to all.

I asked:
 And, the incremental downloaded Type42 font object only I know is in
 PostScript printing data: especially that generated for Distiller.
 I agree, if FreeType can supporting incremental is good idea, but
 what application uses it?

Werner wrote:
The incremental code has been contributed by Graham Asher, mainly for
use with GhostScript, IIRC (or was it Symbian?).  We don't actively
maintain it.

On Mon, 14 Nov 2005 15:08:20 -
Graham Asher [EMAIL PROTECTED] wrote:
GhostScript can use it. I am not sure whether the current version of
GhostScript does actually use it,. but that was what I wrote it for.

On Mon, 14 Nov 2005 10:41:14 -0800
Dirck Blaskey [EMAIL PROTECTED] wrote:
This code is also used by the Liberty Systems Postscript Interpreter 
(CentraDoc). It is quite handy in dealing with Postscript Type 42
fonts defined on-the-fly. I had no idea it wasn't actively maintained.

Now I think that incrementally-loaded Type42 font driver
is almost impossible to utilize without PostScript interpreter.
From the viewpoint of PostScript interpreter maintainer,
the current implementation incrementally-loaded Type42
font driver should be improved? There's any expected feature
in future issue status?

Regards,
mpsuzuki


P.S.
I suppose generating subsetted Type42 font object is expected
by various applications, but it is another issue, and I think
it's not task of FreeType library.


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel