Re: [Fonts]Problems with Xft and pcf/bdf fonts...

2002-11-16 Thread Pigeon
On Fri, Nov 15, 2002 at 05:39:53PM +0100, Juliusz Chroboczek wrote:
   available_sizes- height = 13
   available_sizes- width = 13
 
 P Does this sound right at all?
 
 This is correct.


How exactly I should be opening/using/drawing the font properly?

I've tried with XFT_CHAR_WIDTH and XFT_CHAR_HEIGHT but that doesn't help 
either.

The font is supposed to be 6x13, would 13x13 be incorrect and that's why it 
can't draw it properly?


Thanks again.


Pigeon.

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



Re: [Fonts]Problems with Xft and pcf/bdf fonts...

2002-11-14 Thread Pigeon
 Please check the FT_Bitmap_Size structure.  It has two components, the
 size in the X direction and the size in the Y direction.
 
 You should walk the available_bitmaps array of the FT_Face structure
 and make sure that the size you requested is available.  I believe
 that doing that should be under the responsibility of fontconfig.

In this particular to that 6x13 fonts, I have:

num_fixed_sizes = 1
available_sizes-height = 13
available_sizes-width = 13

Does this sound right at all?

You've mentioned fontconfig. Should I be using that to make life easier (cos 
I'm not using that lib for the moment)?


Pigeon.

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



[Fonts]Problems with Xft and pcf/bdf fonts...

2002-11-13 Thread Pigeon
Hi,

I've been trying to use pcf/bdf fonts with Xft. I was testing with a pcf font 
included with X.

From my ~/.xftcache the font looks like this:

/home/pigeon/xft/6x13.pcf 0 1037180276 
Fixed:style=Regular:slant=0:weight=100:pixelsize=13:encoding=iso10646-1,iso8859-1,glyphs-fontspecific:core=False:index=0:outline=False:scalable=False


I've been using both XftFontOpen and XftFontOpenName to open the font and it 
did open it and returning me something. I tried to print out some of the information 
from the XftFont.

xftfont = XftFontOpen(display, DefaultScreen(display),
XFT_FAMILY, XftTypeString, Fixed,
XFT_STYLE, XftTypeString, Regular,
XFT_SLANT, XftTypeInteger, 0,
XFT_WEIGHT, XftTypeInteger, 100,
XFT_PIXEL_SIZE, XftTypeDouble, 13.0,
XFT_CORE, XftTypeBool, 0,
XFT_INDEX, XftTypeInteger, 0,
XFT_OUTLINE, XftTypeBool, 0,
XFT_SCALE, XftTypeBool, 0,
0);

or

xftfont = XftFontOpenName(display, DefaultScreen(display), Fixed-8);


the output was:

xftfont-ascent 11
xftfont-descent 2
xftfont-height 13
xftfont-max_advance_width 6

which looks ok to me.

However, XftDrawString8 and XftDrawStringUtf8 are not drawing anything. But  
after changing my code to open a ttf font, with the very same drawing code, it worked 
properly. (So I guess my drawing code is correct?)

Any idea or direction?

Thanks a lot.


Pigeon.

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



Re: [Fonts]Problems with Xft and pcf/bdf fonts...

2002-11-13 Thread Pigeon
 P Do you mean the XFT_PIXEL_SIZE? I just did a quick try of of
 P loading from size 1 to 50 but it didn't help either.
 
 Worse than that.  The pixel size must match in both the X and the Y
 direction.  (FreeType and, to a certain extent, X11 support non-square
 pixels).

Hmm so what exactly I can try in this particular case?

I'm fairly new to all these font business.

Thanks.


Pigeon.

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