Font width not correct on Windows

Issue #753 wontfix
Anonymous created an issue


I get too many whitespaces in my text when using ImageFormatter.

The following workaround fixed it for me:

{{{ class DebuggedImageFormatter(ImageFormatter): def init(self, *args, kwargs): ImageFormatter.__init__(self, *args, kwargs) self.fontw = self.fontw -1 }}}

I use this derived class as my ImageFormatter, now the problem is fixed as a workaround

OS is windows server 2003. In my windows 7 box I have not this problem.

it turns out hat for the same font on windows 7, the fontwidth is 8, and on server 2003, the fontwidth is 9.

I use "Courier New" as font string.

Comments (4)

  1. Log in to comment