support for more fonts?

158 views
Skip to first unread message

Felix Breuer

unread,
Jan 5, 2011, 3:46:21 PM1/5/11
to Writemonkey
Hello!

I have come across WriteMonkey today and I really like this piece of
software!

The only trouble I have had is that I cannot use a number of fonts.
Even though they appear in the list of fonts I can choose from, I get
an error message when I select them saying that this "is not a valid
true type font". This is true for some, which are open type fonts.
Others, however, such as the Ubuntu font are honest TrueType fonts -
yet the error message appears.

So, this is a combined bug report/feature request.

1) Bug (?)

The Ubuntu font http://font.ubuntu.com/ cannot be used with
WriteMonkey 2.0 preview #2 even though it works in WriteMonkey 0.9.9.

2) Feature Request

Could you add support for OpenType fonts, in the long term? If not, I
would be curious to hear about the technical reason behind this.
Apparently, Window's standard mechanisms are not used for rendering
fonts (otherwise OpenType would work already, no?). Could you
elaborate what font rendering library you are using?

Thanks a lot!

Felix

josip

unread,
Jan 5, 2011, 4:21:42 PM1/5/11
to write...@googlegroups.com
Yes, there are problems with some fonts. Search this group; you will find some posts on that. The problem is probably solvable, bit it would mean writing custom font selection dialog ... or is it richtextbox unwilling to play with those fonts? ... I haven't looked it that thoroughly yet. I even don't know what is the common denominator of fonts that are not working. And: I can't see why would 099 differ from 20?? No changes there.

Do you have experience with that?
i.

Felix Breuer

unread,
Jan 9, 2011, 7:18:01 AM1/9/11
to Writemonkey
I have just tried the Ubuntu font again, and now it works in both 099
and 20. Strange but good news anyway.

Regarding the OpenType fonts, I am curious about the method you use
for drawing the fonts on screen. If you are using Windows GDI+'s
DrawString method, I can't see why there should be a difference
between OpenType and TrueType fonts.

Also, this dialog box saying that the selected font is "not a valid
true type font", is this a dialog box that you display from your code,
or is it something the font selection dialog shows?

Felix

josip

unread,
Jan 9, 2011, 2:06:52 PM1/9/11
to write...@googlegroups.com
I am not using any drawing libraries explicitly. Win Forms RIchTextBox control is doing that for me. But I think it uses GDI+ under the hood. The native .net support for fonts is not great ...
i.
Reply all
Reply to author
Forward
0 new messages