If I change the font family to fixedsys, it's true that the white border disappears, but why? Here is my code
import tkinter as tk
win = tk.Tk()
win.wm_attributes("-transparentcolor", "white")
win.configure(background='white')
label = tk.Label(text='Hello World', bg='white', font=('Microsoft YaHei', 30))
label.pack()
win.mainloop()