Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!ra!Ra.msstate.edu!ricks From: ricks@EE.MsState.Edu (Rick Schumeyer) Newsgroups: comp.windows.x Subject: font problem (more info) Message-ID: Date: 19 Sep 90 23:03:15 GMT Sender: usenet@ra.MsState.Edu Distribution: comp.windows.x Organization: /home/ricks/.organization Lines: 71 Ok, I guess maybe I should have included some more info on my font problem. I retrieved a program from comp.sources.x which included a bdf font, which I ran bdftosnf on. The resulting snf font looks great on a monochrome SparcStation 1+ (SunOS 4.1, X11R4) when displayed with xfd. However, it looks real bad when displayed on a color station. It looks like each character was drawn twice - once correctly and another time with an x offset of half the character width. Here is the bdf file, up to the first character's bitmap: STARTFONT 2.1 FONT demofont SIZE 64 72 72 FONTBOUNDINGBOX 64 64 0 63 STARTPROPERTIES 3 FONT_ASCENT 0 FONT_DESCENT 64 DEFAULT_CHAR 32 ENDPROPERTIES CHARS 128 STARTCHAR H00 ENCODING 0 SWIDTH 64 0 DWIDTH 64 0 BBX 64 64 0 -64 BITMAP { bitmap deleted } ENDCHAR If I run getbdf on the snf file, I get the following messages: getbdf: no X resolution property found on demofont, assuming 90 getbdf: no Y resolution property found on demofont, assuming 90 I also get this bdf file: STARTFONT 2.1 COMMENT Generated from X font `demofont' by getbdf FONT demofont SIZE 64 90 90 FONTBOUNDINGBOX 64 64 0 -64 STARTPROPERTIES 9 FONT_ASCENT 0 FONT_DESCENT 64 DEFAULT_CHAR 32 FONT "demofont" POINT_SIZE 640 WEIGHT 117 RESOLUTION 99 X_HEIGHT 0 QUAD_WIDTH 64 ENDPROPERTIES CHARS 128 STARTCHAR 0 ENCODING 0 SWIDTH 800 0 DWIDTH 64 0 BBX 64 64 0 -64 BITMAP { bitmap deleted } ENDCHAR The returned bitmaps are correct. The differences appear to be in SIZE, FONTBOUNDINGBOX and SWIDTH. Any suggestions as to why this won't display correctly on a color station would be greatly appreciated. Rick Schumeyer ricks@ee.msstate.edu Drawer EE, Mississippi State, MS, 39762. (601)325-3660