[Fonts] Re:freetype module sometimes gets font height (descent?) wrong
Patch works fine. Thanks, Michael ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
Re: [Fonts] freetype module sometimes gets font height (descent?)
I cannot reprodeuce them using xedit... Why? How is your resolution of xdpyinfo. 100x100 dots per inch? Manually set to 75 dpi, real value is almost exactly 96 dpi. But this is not the problem. If I replace '...-100-100-...' in the LFD with '...-75-75-...' or enforce any other dpi value on the X server or let it choose its own, it's exactly the same. fontpropdump with freetype: PIXEL_SIZE : 12 POINT_SIZE : 87 RESOLUTION_X : 100 RESOLUTION_Y : 100 AVERAGE_WIDTH : 70 RAW_AVERAGE_WIDTH : 6001 FONT_ASCENT : 12 RAW_ASCENT : (none) FONT_DESCENT : 8 RAW_DESCENT : (none) SUBSCRIPT_SIZE : 8 SUBSCRIPT_X : 0 SUBSCRIPT_Y : 2 SUPERSCRIPT_SIZE : 8 SUPERSCRIPT_X : 0 SUPERSCRIPT_Y : 5 UNDERLINE_THICKNESS : 1 UNDERLINE_POSITION : 3 RAW_PIXEL_SIZE : (none) RAW_POINT_SIZE : (none) fontpropdump with xtt: PIXEL_SIZE : 12 POINT_SIZE : 87 RESOLUTION_X : 100 RESOLUTION_Y : 100 AVERAGE_WIDTH : 70 RAW_AVERAGE_WIDTH : 600 FONT_ASCENT : (none) RAW_ASCENT : 832 FONT_DESCENT : (none) RAW_DESCENT : 300 SUBSCRIPT_SIZE : (none) SUBSCRIPT_X : (none) SUBSCRIPT_Y : (none) SUPERSCRIPT_SIZE : (none) SUPERSCRIPT_X : (none) SUPERSCRIPT_Y : (none) UNDERLINE_THICKNESS : (none) UNDERLINE_POSITION : (none) RAW_PIXEL_SIZE : 1000 RAW_POINT_SIZE : 723 Additionally, the fonts I'm using are e.g. available at http://openwebmail.360open.com/download/redhat/archive/webfonts/fonts/ -Michael ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
[Fonts] freetype module sometimes gets font height (descent?) wrong
This patch is somehow broken. Fonts prefixed with 'fp=n' are not found afterwards. It's strange... I've applied the patch to 4.3.99.903, and it works fine. xlsfonts lists the font in question. Emacs bluntly says No fonts match ... and aborts. xfd seems to use it, but displays unknown font in the first line. And contrary to what I said before you can see the overall problem with xfd too if you increase the font size. Do you use 4.3.99.903? Would you check FontPath?(via xfs?) Current cvs, FontPath definetly correct and xfs not used. I'm still wondering if you are able to reproduce what I'm talking about. Please try xedit -fn -monotype-courier new-medium-r-normal--12-0-100-100-m-0-iso8859-1 Two small images of what it looks like for me are here: http://cox.iwr.uni-heidelberg.de/~lampe/xedit-xtt.png http://cox.iwr.uni-heidelberg.de/~lampe/xedit-freetype.png -Michael ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
Re: [Fonts] freetype module sometimes gets font height (descent?)
I think that this problem is related to FreeType's additional font properties. Try xfd command, xfd -fn -monotype-courier new-medium-r-normal--13-0-100-100-m-0-iso8859-1 and check the differences of ascent and descent between xtt and freetype. Perhaps no difference will be seen. Indeed, I don't see any difference. If so, try the attached patch and set fp=n option to fonts.dir: fp=n:cour.ttf -monotype-courier new-medium-r-normal--0-0-0-0-m-0-iso8859-1 and would you tell the result? If fp=n is set, the freetype backend does not add the font properties. This patch is somehow broken. Fonts prefixed with 'fd=n' are not found afterwards. -Michael ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
[Fonts] freetype module sometimes gets font height (descent?) wrong
Try once with freetype and once with xtt loaded: emacs -fn -monotype-courier new-medium-r-normal--13-0-100-100-m-0-iso8859-1 With freetype it looks like double-spaced. With xtt it's ok. This is with current cvs, 4.3 and probably before. -Michael ___ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts