Quote:
Originally Posted by NiLuJe
@ShaderFallback: Would you happen to have a simple testcase so that I can repro that whenever I have time to update this?
|
ok , Here is my simple example
------------------------------------------------------------------------
import sys
import os
from PIL import Image,ImageDraw,ImageFont,ImageChops
rootPath = os.path.abspath(os.path.dirname(__file__))
fontPath = rootPath + "/lib/font.ttf"
fontSize16 = ImageFont.truetype(fontPath, 16)
Himage = Image.new('1', (800, 600), 255)
draw = ImageDraw.Draw(Himage)
draw.text((34, 70), "HelloWorld", font = fontSize16, fill = 0)
------------------------------------------------------------------------
my complete code
https://github.com/ShaderFallback/Ki...alendarWeather
it is at “KT2” can work , “PW3” not work
Thanks again~