I found the problem.
The bug is caused by a change I made to try and better support
odd-ball fonts and characters, and unicode characters, for instance
via the unifont font.
In prior versions, I would set the character width and height via the
GetTextMetrics() function:
GetTextMetrics(hdc, &tm);
g->char_height = tm.tmHeight;
g->char_width = tm.tmAveCharWidth;
In v4.44, I started using:
GetTextExtentPoint(hdc, "W", 1, &sz);
g->char_height =
sz.cy;
g->char_width =
sz.cx;
If I revert back to the old code, Terminal Bold looks ok, but Unifont
looks horrible, kind of like Terminal Bold looks now.
So, pick your poison. I'm open to suggestions!
--
Sammy
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
semware+u...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/semware/002f01d90106%245d78a700%241869f500%24%40ecarlo.nl.