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
Refer to the answer 1：
Font files should be opened with specific files ,pycharm Is not supported , You can try
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
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：
author[CSDN Q & A],Please bring the original link to reprint, thank you.
The sidebar is recommended
- Why can't I see the absolute path of the command
- Pycharm uses the requests crawler to report the wrong requests exceptions. SSLError: HTTPSConnectionPool
- How to run multiple sleep () simultaneously in C language
- The data requested by Axios in vue3 is put into ecarts, which always shows that setoption is not defined
- What do these two for loops mean
- Java judges whether there are 30 consecutive int arrays with a length of 1000 as the growth trend
- Force deduction 221 question maximum square
- When I set this layout, I prompted an error from line 18
- The import javax. security. auth. message cannot be resolved
- The hottest Christmas tree code. one hundred and twenty-three
guess what you like
Open the edge browser and display "what if I can't access this page?"?
Running problems of java simple supermarket system
Is the data  here an address or an element? The concept is always unclear
Python crawling news content
How to deal with the problem of general code framework
Bubble sort, how can there be an extra number in front
The graph drawing algorithm of Python is described by Raptor flow chart software
Numpy creates an array of the specified data range
Python crawler obtains the data of Douban movie top250 fantasy class
R7-2 minimum spanning tree construction (25 points)
- Using burpsuite to capture the package of Pikachu shooting range SQL to inject the first level error
- Jar package conflict. I don't know where 2.29.1 came from
- About the rotation matrix on leetcode!
- The raspberry pie prompts cannot find webcams when running the command
- C + + a simple encryption, look at the warning how to modify, output nothing
- PHP composer and Vue node_ modules
- JDBC connects to the database for data deletion. The syntax is correct, but the data in the database cannot be deleted
- Java interface class program, define an interface and define two classes to implement the interface, then use the sorting method in the class, then enter an array with length of 8 in main, and call newsort with the two implementation classes as arguments
- Sort with average score, preferably bubble method
- When running the service jar, report Linux 1] + exit 1
- How to solve the problem of traceback? (Language Python)
- If an undirected graph G has 100 edges, how many vertices does the undirected graph have at least
- There was a problem calling the custom function
- The sum of a positive integer and 3 is a multiple of 5, and the difference between a positive integer and 3 is a multiple of 6. Write a program to find the minimum number that meets the conditions.
- Oracle has customized a date function. What's wrong with this writing?
- Spring boot project failed to introduce echarts
- How to solve this kind of program
- How to understand this? I didn't understand it at the beginning
- This problem requires the implementation of a function to reverse the given one-way linked list, that is, the header is set to the end of the table, and the end of the table is set to the header.
- *Isn't a numerical value? Because a is the address
- How should this program be completed
- The picture of U disk retrieved by app in Android 8.1 development board
- C language beginners' doubts, no, require recursion
- How to use bat or VBS to open Ethernet status window
- Base selection questions, C + + has just begun to learn, can someone give some ideas
- C language function problem,.?!
- Java class related problems
- What library is checkfasta in Python? Why can't you find it
- Problems encountered when deploying HTTPS certificates using docker nginx
- Why can't vs2022 run this code, but the compiler on the mobile phone can
- Java type conversion problem, is there a useful tool?
- C language function problem, confusion,.?!
- Please do me a favor and solve it
- Python learning has something you don't understand
- How does Baidu Post Bar get posts in it
- Who will prompt the board of STC89C52 if there is no professional course
- Can C language assign a value to the whole array
- How to prevent the page from sliding up and down when the wechat applet slides left and right
- Does anyone know why the information in this form can't come out? Hurry!
- Operation of strlen function