View Single Post
Old 06-28-2022, 12:52 AM   #1039
ShaderFallback
Junior Member
ShaderFallback began at the beginning.
 
ShaderFallback's Avatar
 
Posts: 4
Karma: 10
Join Date: Jun 2022
Location: china
Device: pw3
Quote:
Originally Posted by NiLuJe View Post
@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~
ShaderFallback is offline   Reply With Quote