Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Juliusz Chroboczek
PdV> I allready checked the freetype lists, and came to the conclusion
PdV> that appart from a short discussion in february nothing is being
PdV> done about pcf files for that memory reasons.

  http://www.xfree86.org/pipermail/fonts/2002-August/002019.html

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



Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Paul de Vrieze
>
> The problem is indeed at the FreeType level.  When I have some time,
> I'll implement a decompressing filter for FreeType.  It will use
> petabytes of memory, but will provide a short-term solution for people
> with petabytes of memory.
>
> The long-term solution is to dump the PCF format.  This won't happen
> in time for 4.3.0.  (Not to imply that the former will.)
>

I allready checked the freetype lists, and came to the conclusion that appart 
from a short discussion in february nothing is being done about pcf files for 
that memory reasons. At the moment I uncompressed the fonts, but a real 
solution should be better.

Paul

-- 
Paul de Vrieze
Junior Researcher
Mail: [EMAIL PROTECTED]
Homepage: http://www.devrieze.net

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



Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Juliusz Chroboczek
> In article <[EMAIL PROTECTED]>, Paul de Vrieze 
><[EMAIL PROTECTED]> writes:

PdV> I allready found the problem. The problem is the fact that the
PdV> fixed font is not found. This is because all my pcf fonts are
PdV> gzipped by default. For some reason fontconfig doesn't recognize
PdV> them in this case. I will check whether I can come up with some
PdV> patch for this.

The problem is indeed at the FreeType level.  When I have some time,
I'll implement a decompressing filter for FreeType.  It will use
petabytes of memory, but will provide a short-term solution for people
with petabytes of memory.

The long-term solution is to dump the PCF format.  This won't happen
in time for 4.3.0.  (Not to imply that the former will.)

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



Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Paul de Vrieze
On Friday 18 October 2002 20:41, Paul de Vrieze wrote:
>
> I allready found the problem. The problem is the fact that the fixed font
> is not found. This is because all my pcf fonts are gzipped by default. For
> some reason fontconfig doesn't recognize them in this case. I will check
> whether I can come up with some patch for this.

I traced down the problem to the freetype library which doesn't recognize gzip 
compressed pcf files as such. Now I'm going to look whether something can be 
done (preferably a preexisting patch) about it.

Paul

-- 
Paul de Vrieze
Junior Researcher
Mail: [EMAIL PROTECTED]
Homepage: http://www.devrieze.net

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



Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Paul de Vrieze
On Friday 18 October 2002 16:48, Owen Taylor wrote:
> Paul de Vrieze <[EMAIL PROTECTED]> writes:
> > Yesterday I installed the XFt-2 enabled QT. Now running konsole (the kde
> > terminal application) It started out with very wide characters (from
> > arial) This is caused by the fact that the font selection mechanism
> > refuses to match the -misc-fixed-medium-r-* bitmapped font. I've tried
> > out several configurations but none helped (except aliassing to a
> > monospaced font, not arial).
> >
> > I'll attach a log from starting konsole, and my font.conf file.
>
> Basically Konsole is looking for a font that isn't there so it
> falls back to the default. The only thing to do about this is
> to patch the hardcoded default fonts.
>
> The attached is a patch from the Red Hat 8 KDE packages to do
> this. (I'm not sure if it's the final version or not -- it's
> just what was sitting in my patches directory.) It uses
> 'monospace' - the standard fontconfig name for the default
> monospace font - instead of 'fixed'
>
> For your own use, you can also just select a different font
> with the font selector in Konsole, of course.

I allready found the problem. The problem is the fact that the fixed font is 
not found. This is because all my pcf fonts are gzipped by default. For some 
reason fontconfig doesn't recognize them in this case. I will check whether I 
can come up with some patch for this.

Paul

-- 
Paul de Vrieze
Junior Researcher
Mail: [EMAIL PROTECTED]
Homepage: http://www.devrieze.net

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



Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Owen Taylor

Paul de Vrieze <[EMAIL PROTECTED]> writes:

> Yesterday I installed the XFt-2 enabled QT. Now running konsole (the kde 
> terminal application) It started out with very wide characters (from arial) 
> This is caused by the fact that the font selection mechanism refuses to match 
> the -misc-fixed-medium-r-* bitmapped font. I've tried out several 
> configurations but none helped (except aliassing to a monospaced font, not 
> arial).
> 
> I'll attach a log from starting konsole, and my font.conf file.

Basically Konsole is looking for a font that isn't there so it
falls back to the default. The only thing to do about this is
to patch the hardcoded default fonts.

The attached is a patch from the Red Hat 8 KDE packages to do
this. (I'm not sure if it's the final version or not -- it's
just what was sitting in my patches directory.) It uses
'monospace' - the standard fontconfig name for the default
monospace font - instead of 'fixed'

For your own use, you can also just select a different font 
with the font selector in Konsole, of course.


Regards,
Owen


--- kdebase-3.0.3/konsole/konsole/konsole.cpp.fontkonsole	2002-08-11 11:30:03.0 +0200
+++ kdebase-3.0.3/konsole/konsole/konsole.cpp	2002-08-11 11:30:03.0 +0200
@@ -152,8 +152,6 @@
  "13",  // medium
  "15",  // large
  "20", // huge
- "-misc-console-medium-r-normal--16-160-72-72-c-160-iso10646-1", // "Linux"
- "-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1",// "Unicode"
  };
 #define TOPFONT (sizeof(fonts)/sizeof(char*))
 #define DEFAULTFONT TOPFONT
@@ -494,9 +492,6 @@
   << i18n("&Large")
   << i18n("&Huge")
   << ""
-  << i18n("L&inux")
-  << i18n("&Unicode")
-  << ""
   << i18n("&Custom...");
selectFont->setItems(it);
selectFont->plug(m_options);
@@ -862,7 +857,7 @@
 
   // Options that should be applied to all sessions /
   // (1) set menu items and Konsole members
-  QFont tmpFont("fixed");
+  QFont tmpFont("Monospace");
   defaultFont = config->readFontEntry("defaultfont", &tmpFont);
   setFont(QMIN(config->readUnsignedNumEntry("font",3),TOPFONT));
 
@@ -1083,7 +1078,7 @@
   }
   else
   {
-f.setFamily("fixed");
+f.setFamily("Monospace");
 f.setFixedPitch(true);
 f.setPixelSize(QString(fonts[fontno]).toInt());
   }
--- kdebase-3.0.3/konsole/konsole/konsole_part.cpp.fontkonsole	2002-08-05 16:56:24.0 +0200
+++ kdebase-3.0.3/konsole/konsole/konsole_part.cpp	2002-08-11 11:40:55.0 +0200
@@ -130,8 +130,6 @@
  "13",  // medium
  "15",  // large
  "20", // huge
- "-misc-console-medium-r-normal--16-160-72-72-c-160-iso10646-1", // "Linux"
- "-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1",// "Unicode"
  };
 
 #define TOPFONT (sizeof(fonts)/sizeof(char*))
@@ -331,9 +329,6 @@
  << i18n("&Large")
  << i18n("&Huge")
  << ""
- << i18n("&Linux")
- << i18n("&Unicode")
- << ""
  << i18n("&Custom...");
   selectFont->setItems(it);
   selectFont->plug(m_options);
@@ -449,7 +444,7 @@
   m_histSize = config->readNumEntry("history",DEFAULT_HISTORY_SIZE);
   s_word_seps= config->readEntry("wordseps",":@-./_~");
 
-  QFont tmpFont("fixed");
+  QFont tmpFont("Monospace");
   defaultFont = config->readFontEntry("defaultfont", &tmpFont);
   setFont(QMIN(config->readUnsignedNumEntry("font",3),TOPFONT));
 
@@ -575,7 +570,7 @@
   }
   else
   {
-f.setFamily("fixed");
+f.setFamily("Monospace");
 f.setFixedPitch(true);
 f.setPixelSize(QString(fonts[fontno]).toInt());
   }



Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Paul de Vrieze
On Friday 18 October 2002 05:21, Ian Pilcher wrote:
> I can't tell from the log whether you have made any bitmap fonts
> available to fontconfig.  On my Red Hat 8 system, I have found that I
> can use PCF fonts in konsole by putting un-gzipped copies of them in
> /usr/share/fonts/bitmap-fonts (or presumably any other directory listed
> in fonts.conf) and running fc-cache.

The fonts.conf  includes the standard X fonts path, the misc-fixed font is a 
standard X font that is installed and available in X. The thing is, I can 
even select it in konsole. It just doesn't use this font for displaying, it 
uses arial, which of course produces the ugly results. Also with a 
non-patched qt-3.0.5 it works properly (It has also not been compiled after 
the installation of fontconfig/Xft-1.1/Xft-2)

>
> As an aside, this doesn't work for the Courier fonts that ship with
> XFree86.  I suspect that this is because a couple of them don't have a
> "spacing" value.

How can I check this?

Paul

-- 
Paul de Vrieze
Junior Researcher
Mail: [EMAIL PROTECTED]
Homepage: http://www.devrieze.net

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



Re: [Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread ismail donmez
I have the same problem and I think this is because
fontconfig uses hinting for all fonts by default. I
*think* ( provided not sure ) turning hinting off
would solve the problem completely. But I dont know
how to turn off hinting completely in fonts.conf.
Maybe you know how?

This happened to me with xft1 too , and I used David
Chester's nohinting patch for Xft1 and it worked.

Hope that Helps

/ismail

=
Microsoft Windows: made for the internet
The Internet: made for UNIX

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]Fontconfig + patched qt-3.0.5 doesn't allow bitmap fixed font

2002-10-18 Thread Paul de Vrieze
Yesterday I installed the XFt-2 enabled QT. Now running konsole (the kde 
terminal application) It started out with very wide characters (from arial) 
This is caused by the fact that the font selection mechanism refuses to match 
the -misc-fixed-medium-r-* bitmapped font. I've tried out several 
configurations but none helped (except aliassing to a monospaced font, not 
arial).

I'll attach a log from starting konsole, and my font.conf file.


-- 
Paul de Vrieze
Junior Researcher
Mail: [EMAIL PROTECTED]
Homepage: http://www.devrieze.net

XFT_DEBUG=4047
XftFontMatch pattern Pattern 6 of 16
	encoding: "iso10646-1"
	family: "arial" "sans"
	foundry: "monotype"
	size: 12
	slant: 0
	weight: 100

XftFontMatch after FcConfig substitutions Pattern 7 of 16
	dpi: 75
	encoding: "iso10646-1"
	family: "arial" "Verdana" "Arial" "Verdana" "Nimbus Sans L" "Luxi Sans" "Arial" "Helvetica" "Kochi Gothic" "AR PL KaitiM GB" "AR PL KaitiM Big5" "Baekmuk Dotum" "SimSun" "sans-serif" "sans-serif"
	foundry: "monotype"
	size: 12
	slant: 0
	weight: 100

XftDisplayInfoGet Default visual 0x23 format 0,16,8,0
XftDisplayInfoGet initialized, hasRender set to "True"
global max cache memory 4194304
global max unref fonts 16
XftFontMatch after X resource substitutions Pattern 18 of 32
	antialias: FcTrue
	autohint: FcFalse
	dpi: 75
	encoding: "iso10646-1"
	family: "arial" "Verdana" "Arial" "Verdana" "Nimbus Sans L" "Luxi Sans" "Arial" "Helvetica" "Kochi Gothic" "AR PL KaitiM GB" "AR PL KaitiM Big5" "Baekmuk Dotum" "SimSun" "sans-serif" "sans-serif"
	foundry: "monotype"
	globaladvance: FcTrue
	hinting: FcTrue
	maxglyphmemory: 1048576
	minspace: FcFalse
	pixelsize: 12.5
	render: FcTrue
	rgba: 0
	scale: 1
	size: 12
	slant: 0
	verticallayout: FcFalse
	weight: 100

XftFontMatch result Pattern 25 of 32
	antialias: FcFalse
	autohint: FcFalse
	charset: set
	dpi: 75
	encoding: "iso10646-1"
	family: "Arial"
	file: "/usr/X11R6/lib/X11/fonts/truetype/arial.ttf"
	foundry: "monotype"
	globaladvance: FcTrue
	hinting: FcTrue
	index: 0
	lang: langset
	maxglyphmemory: 1048576
	minspace: FcFalse
	outline: FcTrue
	pixelsize: 12.5
	render: FcTrue
	rgba: 0
	scalable: FcTrue
	scale: 1
	size: 12
	slant: 0
	style: "Regular"
	verticallayout: FcFalse
	weight: 100

XftFontInfoFill: /usr/X11R6/lib/X11/fonts/truetype/arial.ttf: 0 (12.5 pixels)
New font /usr/X11R6/lib/X11/fonts/truetype/arial.ttf/0 size 12x12
XftFontMatch pattern Pattern 5 of 16
	encoding: "iso10646-1"
	family: "fixed" "sans"
	size: 12
	slant: 0
	weight: 100

XftFontMatch after FcConfig substitutions Pattern 6 of 16
	dpi: 75
	encoding: "iso10646-1"
	family: "fixed" "Arial" "Verdana" "Nimbus Sans L" "Luxi Sans" "Arial" "Helvetica" "Kochi Gothic" "AR PL KaitiM GB" "AR PL KaitiM Big5" "Baekmuk Dotum" "SimSun" "sans-serif"
	size: 12
	slant: 0
	weight: 100

XftFontMatch after X resource substitutions Pattern 17 of 32
	antialias: FcTrue
	autohint: FcFalse
	dpi: 75
	encoding: "iso10646-1"
	family: "fixed" "Arial" "Verdana" "Nimbus Sans L" "Luxi Sans" "Arial" "Helvetica" "Kochi Gothic" "AR PL KaitiM GB" "AR PL KaitiM Big5" "Baekmuk Dotum" "SimSun" "sans-serif"
	globaladvance: FcTrue
	hinting: FcTrue
	maxglyphmemory: 1048576
	minspace: FcFalse
	pixelsize: 12.5
	render: FcTrue
	rgba: 0
	scale: 1
	size: 12
	slant: 0
	verticallayout: FcFalse
	weight: 100

XftFontMatch result Pattern 24 of 32
	antialias: FcFalse
	autohint: FcFalse
	charset: set
	dpi: 75
	encoding: "iso10646-1"
	family: "Arial"
	file: "/usr/X11R6/lib/X11/fonts/truetype/arial.ttf"
	globaladvance: FcTrue
	hinting: FcTrue
	index: 0
	lang: langset
	maxglyphmemory: 1048576
	minspace: FcFalse
	outline: FcTrue
	pixelsize: 12.5
	render: FcTrue
	rgba: 0
	scalable: FcTrue
	scale: 1
	size: 12
	slant: 0
	style: "Regular"
	verticallayout: FcFalse
	weight: 100

XftFontInfoFill: /usr/X11R6/lib/X11/fonts/truetype/arial.ttf: 0 (12.5 pixels)
Caching glyph 0x3 size 20
Caching glyph 0x4 size 60
Caching glyph 0x5 size 32
Caching glyph 0x6 size 60
Caching glyph 0x7 size 64
Caching glyph 0x8 size 60
Caching glyph 0x9 size 60
Caching glyph 0xa size 32
Caching glyph 0xb size 72
Caching glyph 0xc size 72
Caching glyph 0xd size 36
Caching glyph 0xe size 48
Caching glyph 0xf size 32
Caching glyph 0x10 size 24
Caching glyph 0x11 size 24
Caching glyph 0x12 size 60
Caching glyph 0x13 size 60
Caching glyph 0x14 size 60
Caching glyph 0x15 size 60
Caching glyph 0x16 size 60
Caching glyph 0x17 size 60
Caching glyph 0x18 size 60
Caching glyph 0x19 size 60
Caching glyph 0x1a size 60
Caching glyph 0x1b size 60
Caching glyph 0x1c size 60
Caching glyph 0x1d size 48
Caching glyph 0x1e size 56
Caching glyph 0x1f size 48
Caching glyph 0x20 size 36
Caching glyph 0x21 size 48
Caching glyph 0x22 size 60
Caching glyph 0x23 size 72
Caching glyph 0x24 size 60
Caching glyph 0x25 size 60
Caching glyph 0x26 size 60
Caching glyph 0x27 size 60
Caching glyph 0x28 size 60
Caching glyph 0x29 size 60
Caching glyph 0x2a size 60
Caching glyph 0x2b size 60
Caching glyph 0x2c size 60
Caching glyph 0x2d size 60
Cac