mirror of https://gitlab.com/bashrc2/epicyon
Additional font formats
parent
9ad1fc842f
commit
c18056becc
13
daemon.py
13
daemon.py
|
@ -6844,10 +6844,17 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
getreq_start_time) -> None:
|
getreq_start_time) -> None:
|
||||||
"""Returns a font
|
"""Returns a font
|
||||||
"""
|
"""
|
||||||
|
font_str = path.split('/fonts/')[1]
|
||||||
if self.server.dyslexic_font:
|
if self.server.dyslexic_font:
|
||||||
font_str = 'OpenDyslexic-Regular.woff2'
|
if font_str.endswith('.otf'):
|
||||||
else:
|
font_str = 'OpenDyslexic-Regular.otf'
|
||||||
font_str = path.split('/fonts/')[1]
|
elif font_str.endswith('.ttf'):
|
||||||
|
font_str = 'OpenDyslexic-Regular.ttf'
|
||||||
|
elif font_str.endswith('.woff'):
|
||||||
|
font_str = 'OpenDyslexic-Regular.woff'
|
||||||
|
else:
|
||||||
|
font_str = 'OpenDyslexic-Regular.woff2'
|
||||||
|
|
||||||
if font_str.endswith('.otf') or \
|
if font_str.endswith('.otf') or \
|
||||||
font_str.endswith('.ttf') or \
|
font_str.endswith('.ttf') or \
|
||||||
font_str.endswith('.woff') or \
|
font_str.endswith('.woff') or \
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue