v-python

Results 31 comments of v-python
trafficstars

So the "network" between the NodeJS and the bottle is likely quite reliable, in that it is a memory transfer within a single computer, if I understand your environment correctly....

I'm just looking to use Pillow to do multiline text generation, and see several issues in the archives about this issue, as well as this one. It seems Pillow assumes...

Over on #1540 it says: ```pycon >>> from PIL import ImageFont >>> t = ImageFont.truetype('DejaVuSans.ttf', 40) >>> t.getmetrics() (38, 10) >>> t.font.ascent 38 >>> t.font.descent 10 >>> t.font.height 47 >>>...

Maybe my previous comment should have been a new bug, but I'm trying to understand these numbers in the context of figuring out how to deal with multiline text in...

So when I look at DejaVu Sans in another application, which assumes 96dpi screen resolution and 1pt = 4/3 pixel, I tell it to put 40 point text on the...

I've come to the following conclusions: Pillow docs may actually be correct with regard to point sizes, but leave out one huge assumption, that in dealing with fonts, the point...

"Yes, but..." :) I did stumble on to some references to freetype documentation, but didn't find the link you pointed at, thanks for that. I stand by my conclusions above....

I found some font tools from M$ at https://www.microsoft.com/typography/tools/tools.aspx Using ttfdump to dump the DejaVuSans.ttf file, I find the following information: From 'head' table: unitsPerEm: 2048 xMin: -2090 yMin: -850...

This page helps: http://chanae.walon.org/pub/ttf/ttf_glyphs.htm particularly the following quoted text: the internal leading: this concept comes directly from the world of traditional typography. It represents the amount of space within the...

There was already too much in the previous comment. I wrote some more code, regarding the Y dimension of the height: ```python f1 = ImageFont.truetype("DejaVuSans.ttf", 40 ) f2 = ImageFont.truetype("DejaVuSans.ttf",...