url/get_character_pic.ipynb

1972 lines
242 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "a18e717c",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:74: DeprecationWarning: textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use textbbox or textlength instead.\n",
" font_width, font_height = draw.textsize(char, font)\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:76: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
"C:\\Users\\hua'wei\\AppData\\Local\\Temp\\ipykernel_7308\\701224250.py:77: DeprecationWarning: getoffset is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox instead.\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n"
]
}
],
"source": [
"from __future__ import print_function\n",
"from PIL import Image\n",
"from PIL import ImageFont\n",
"from PIL import ImageDraw\n",
"import os\n",
"import shutil\n",
"import time\n",
"import cv2\n",
"import numpy as np\n",
"\n",
"#%% 要生成的文本\n",
"label_dict = {0: '0', 1: '1', 2: '2', 3: '3', 4: '4', 5: '5', 6: '6', 7: '7', 8: '8', 9: '9', 10: '=', 11: '+', 12: '-', 13: '×', 14: '÷'}\n",
"\n",
"# 文本对应的文件夹,给每一个分类建一个文件\n",
"for value,char in label_dict.items():\n",
" train_images_dir = \"dataset\"+\"/\"+str(value)\n",
" if os.path.isdir(train_images_dir):\n",
" shutil.rmtree(train_images_dir)\n",
" os.makedirs(train_images_dir)\n",
"\n",
"# \n",
"def get_square_img(image):\n",
" \n",
" x, y, w, h = cv2.boundingRect(image)\n",
" image = image[y:y+h, x:x+w]\n",
"\n",
" max_size = 18\n",
" max_size_and_border = 24\n",
"\n",
" if w > max_size or h > max_size: # 有超过宽高的情况\n",
" if w>=h: # 宽比高长,压缩宽\n",
" times = max_size/w\n",
" w = max_size\n",
" h = int(h*times)\n",
" else: # 高比宽长,压缩高\n",
" times = max_size/h\n",
" h = max_size\n",
" w = int(w*times)\n",
" # 保存图片大小\n",
" image = cv2.resize(image, (w, h))\n",
"\n",
"\n",
" xw = image.shape[0]\n",
" xh = image.shape[1]\n",
"\n",
" xwLeftNum = int((max_size_and_border-xw)/2)\n",
" xwRightNum = (max_size_and_border-xw) - xwLeftNum\n",
"\n",
" xhLeftNum = int((max_size_and_border-xh)/2)\n",
" xhRightNum = (max_size_and_border-xh) - xhLeftNum\n",
" \n",
" img_large=np.pad(image,((xwLeftNum,xwRightNum),(xhLeftNum,xhRightNum)),'constant', constant_values=(0,0)) \n",
" \n",
" return img_large\n",
"\n",
"# %% 生成图片\n",
"def makeImage(label_dict, font_path, width=24, height=24, rotate = 0):\n",
"\n",
" # 从字典中取出键值对\n",
" for value,char in label_dict.items():\n",
" # 创建一个黑色背景的图片大小是24*24\n",
" img = Image.new(\"RGB\", (width, height), \"black\") \n",
" draw = ImageDraw.Draw(img)\n",
" scale = 1.0\n",
" # 字符扩大字号倍数\n",
" if value in [12]: # '-'\n",
" scale = 1.3 \n",
" if value in [12,14]: # '-' '÷'\n",
" scale = 1.2 \n",
" if value in [10,11,13]: # '=' '+' '×'\n",
" scale = 1.1\n",
" font = ImageFont.truetype(font_path, int(width*scale))\n",
" # 获取字体的宽高\n",
" font_width, font_height = draw.textsize(char, font)\n",
" # 计算字体绘制的x,y坐标主要是让文字画在图标中心\n",
" x = (width - font_width-font.getoffset(char)[0]) / 2\n",
" y = (height - font_height-font.getoffset(char)[1]) / 2\n",
" # 绘制图片,在那里画,画啥,什么颜色,什么字体\n",
" draw.text((x,y), char, (255, 255, 255), font)\n",
" # 设置图片倾斜角度\n",
" if rotate != 0:\n",
" img = img.rotate(rotate)\n",
" \n",
" img_arr = np.array(img) \n",
" img_arr=cv2.cvtColor(img_arr,cv2.COLOR_BGR2GRAY)\n",
" img_arr = get_square_img(img_arr)\n",
"\n",
" img=Image.fromarray(img_arr)\n",
" # 命名文件保存命名规则dataset/编号/img-编号_r-选择角度_时间戳.png\n",
" time_value = int(round(time.time() * 1000))\n",
" img_path = \"dataset/{}/img-{}_r-{}_{}.png\".format(value,value,rotate,time_value)\n",
" img.save(img_path)\n",
" \n",
"# %% 存放字体的路径\n",
"font_dir = \"./fonts\"\n",
"for font_name in os.listdir(font_dir):\n",
" # 把每种字体都取出来,每种字体都生成一批图片\n",
" path_font_file = os.path.join(font_dir, font_name)\n",
" \n",
" #makeImage(label_dict, path_font_file)\n",
" # 倾斜角度从-10到10度每个角度都生成一批图片\n",
" for k in range(-5, 5, 1):\t\n",
" # 每个字符都生成图片\n",
" makeImage(label_dict, path_font_file, rotate = k)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0e486202",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}