[sword-devel] Some Win32 Suggestions

sword-devel@crosswire.org sword-devel@crosswire.org
Thu, 28 Jun 2001 08:25:09 -0700

> Went to apply your patch and noticed that you changed things in
> CreateTextPane to NOT grab the font from the module's .conf file any
> longer... or changed it to look for "Bible Font" instead of "Font"...
> Was wondering what this was about.  Maybe we should use the user defined
> font unless the module calls for a specific font.  The Font= tag should
> go away soon anyway, since we're moving to the more general Encoding=
> tag.  As Chris mentioned, we still have a few issues, like, what if your
> default font SAYS it supports a specific encoding, but doesn't really
> support it completely...  Anyway, just wanted to understand your
> thinking before I apply the patch...

Guess what. I did not know that the CreateTextPane used a default font from
the module.conf file. My mistake. I assumed everything was just using the
Times New Roman font. Your solution of using the user font if the module
doesn't specify one sounds reasonable. I am assuming that the module.conf
specified font is specified for special characters? I am new to the whole
RTF and Unicode concept, but I am learning :) Do whatever seems best to you.
One thing I will say is that I could never get the chineese font to show on
my NT box at home unless I used my revised code and selected an obvious
unicode font. At work it always works no matter what font I choose. My point
is that unless I can find a solid reason for why fonts don't always map to
their unicode characters, at least they can make it do so with the font
selctor. There must be some way to let the user have their cake and eat it
too, I am willing to work some more on this if you would be willing to guide
me a bit and let me know what you would like to see.

> PS.  I'll look at changing the .dfm files to text, if I can figure it
> out.  Thanks for pointing this out!

It is rather simple. Right click on the forms I specified in my previous
email and at the bottom of the pop-up menu is "Text DFM" option check it,
and the forms will save as text.