current position:Home>Pycharm loads TTF font file and displays garbled code

Pycharm loads TTF font file and displays garbled code

2022-02-03 01:22:56 CSDN Q & A

pycharm load ttf The font file Show random code I would like to ask you how to solve
Pictured

img

img




Refer to the answer 1:

Font files should be opened with specific files ,pycharm Is not supported , You can try
Font manager
Font preview tool (FontViewOK)
FontExpert( Font management software )
Font editor (TypeTool)




Refer to the answer 2:



Refer to the answer 3:

import pandas as pd
from tqdm import tqdm
from fontTools.ttLib.ttFont import TTFont
from PIL import ImageFont, Image, ImageDraw
import os
import time

time1=time.time()
parse = argparse.ArgumentParser(description=" take ttf Convert font file to picture ")
parse.add_argument('-s', '--size', type=int, help=" The pixel size of the output picture ", default=128)
args = parse.parse_args(args=[])




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030122539066.html

Random recommended