KP> I suspect we need to make the bitmap scaler optional; allow either
KP> :scaled or :unscaled options on the font path elements and make
KP> the default :unscaled.

Keith, I hate you.  Okay, I'll do that.

KP> I'd like to have a build-time option to get rid of the code for kdrive 
KP> servers,

Appended.

KP> but disabled by default.

How do I read an XF86Config flag from a font backend?

KP> An alternative that could work is to (optionally) advertise
KP> scalable names but do nearest-size matching instead of bitmap
KP> scaling;

Not difficult, the code is already there (when selecting a bitmap font
to scale); what bothers me is that we're adding code where should be
removing it.

                                        Juliusz

Index: xc/lib/font/bitmap/bitscale.c
===================================================================
RCS file: /cvs/xc/lib/font/bitmap/bitscale.c,v
retrieving revision 3.22
diff -c -r3.22 bitscale.c
*** xc/lib/font/bitmap/bitscale.c       2001/12/14 19:56:46     3.22
--- xc/lib/font/bitmap/bitscale.c       2002/05/31 17:26:35
***************
*** 49,54 ****
--- 49,80 ----
  #define   MAX(a,b)    (((a)>(b)) ? a : b)
  #endif
  
+ #ifdef NO_BITMAP_SCALER
+ 
+ /* ARGSUSED */
+ int
+ BitmapOpenScalable (FontPathElementPtr fpe, 
+                   FontPtr *pFont, 
+                   int flags, 
+                   FontEntryPtr entry, 
+                   char *fileName,
+                   FontScalablePtr vals, 
+                   fsBitmapFormat format, 
+                   fsBitmapFormatMask fmask,
+                   FontPtr non_cachable_font)
+ {
+     return BadFontName;
+ }
+ 
+ /* ARGSUSED */
+ static void
+ bitmapUnloadScalable (FontPtr pFont)
+ {
+     return BadFontName;
+ }
+ 
+ #else
+ 
  /* Should get this from elsewhere */
  extern int serverGeneration;
  
***************
*** 1952,1954 ****
--- 1978,1982 ----
      xfree (pFont->fontPrivate);
      DestroyFontRec (pFont);
  }
+ 
+ #endif
_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts

Reply via email to