How to add custom font in python-flask?
问题 I have tried using @fontface css style, but the font doesn't get rendered. Is there another way of doing this using python/flask?? <!DOCTYPE html> <html> <style type="text/css"> @font-face { font-family: trial; src: url_for('CENTRALESANSCND-BOLD.otf') ; font-weight:bold; } </style> <body> <p style="font-family:trial; font-weight: bold"> Hello </p> </body> </html> The above is my HTML template. Unfortunately, when I render it using Flask, it doesn't reflect the font. The following is my .py