Re: [Fonts]Re: fonts.scale files in SuSE

2002-06-02 Thread Rui-Xiang Guo

On Tue, May 28, 2002 at 11:33:37AM +0200, Juliusz Chroboczek wrote:
 [CC-ing the list propter majorem sapientiae condivisionem]
 
  In SuSE Linux 7.3 I had lots of handedited fonts.scale.packagename
  files, which I merged into a fonts.scale file with
  /sbin/conf.d/SuSEconfig.fonts. I absolutely needed these handedited
  files because the output of ttmkfdir was too bad to generate these
  automatically. I usually started with the output of ttmkfdir, then
  improved it manually and packaged the result together with the font
  rpm.
 
 I think this is the right approach.

But it is not convenient for people who want to buy or download some ttf
for using them under X. This is why I would like to have a common tool -
something like 'mkfontdir'.

-rxg
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



Re: [Fonts]Re: New version of mkfontscale

2002-06-02 Thread Rui-Xiang Guo

On Tue, May 28, 2002 at 10:25:49AM +0100, Juliusz Chroboczek wrote:
 RG Well, all the ttf I tested are Unicode fonts but we still need specific
 RG encodings to use them with most applications.
 
 The point I was making is that in practice the fuzz value will only be
 used for East-Asian encodings, and I'm therefore glad to set it to
 whatever value users of such encodings find best.
 
 Please take your time, experiment with various values, and then feel
 free to suggest the tightest value you feel happy with.

I think '-f 3' is a not bad choice. But I don't do a well test because
I don't have many ttf on my system. :)

 RG Should we use another way to set spacing value?
 
 I don't see any.  The macBits field in head doesn't specify spacing,
 and the Panose field in the os2 table is usually unreliable.

Why? Could you please show me some examples? Thanks!

-rxg
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



Re: [Fonts]New versions of mkfontscale and FreeType 2 backend

2002-04-26 Thread Rui-Xiang Guo

 It seems the problem of FT_Get_Char_Index() in checkEncoding().

Hi, I just do the quick testing work with this:
--- mkfontscale.c.orig  Wed Apr 24 16:47:01 2002
+++ mkfontscale.c   Fri Apr 26 22:39:18 2002
@@ -36,6 +36,7 @@
 #include freetype/internal/ftobjs.h
 #include freetype/internal/t1types.h
 #include freetype/ftmodule.h
+#include freetype/internal/sfnt.h
 
 #define FACE_TYPE(FACE) ((FACE)-driver-clazz-root.module_name)
 #define T1INFO(FACE) \
@@ -58,7 +59,7 @@
   adobe-standard, adobe-symbol, ibm-cp437, microsoft-cp1252,
   /* But not adobe-dingbats, as it uses generic glyph names. */
   jisx0201.1976-0, jisx0208.1983-0, jisx0208.1990-0,
-  jisx0212.1190-0, big5.eten-0, gb2312.1980-0,
+  jisx0212.1990-0, big5-0, gb2312.1980-0,
   ksc5601.1987-0, ksc5601.1992-3};
 
 char *extra_encodings_array[] =
@@ -498,6 +499,7 @@
 int i, j, c, koi8;
 char *n;
 FT_CharMap cmap;
+TT_CMapTable* ttcmap;
 
 encoding = FontEncFind(encoding_name, NULL);
 if(!encoding)
@@ -542,7 +544,13 @@
 if(CODE_IGNORED(c)) {
 continue;
 } else {
-if(FT_Get_Char_Index(face, c) == 0) {
+if(face  face-charmap) {
+ttcmap = ((TT_CharMap)face-charmap)-cmap;
+if(ttcmap-get_index)
+/* if(ttcmap-get_index(ttcmap, c) == 0)
+return 0; */
+return ttcmap-get_index(ttcmap, c);
+} else {
 return 0;
 }
 }

then I get another fonts.scale file:
28
bsmi00lp.ttf -arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-p-0-jisx0208.1
983-0
bsmi00lp.ttf -arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-p-0-jisx0208.1
990-0
bsmi00lp.ttf -arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-p-0-big5-0
bsmi00lp.ttf -arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-p-0-gb2312.198
0-0
bsmi00lp.ttf -arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-p-0-ksc5601.19
87-0
bsmi00lp.ttf -arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-p-0-ksc5601.19
92-3
bsmi00lp.ttf -arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-p-0-iso10646-1...

What't the secret in get_index()? X-)

 2) After I add those two lines by hand, I still have to edit the fonts.alias
 file for running rxvt. The sample for 16 pixel fonts is:
...
The other two GB encoding fonts also need it.
Maybe we need a script to generate it.

 3) Besides that, I need to fix the spacing value 'p' to 'c' because the
 value 'p' will cause delay in several seconds when start-up rxvt.
...
The other two GB encoding fonts also get the same situation...

-rxg
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts