mirror of https://gitlab.com/bashrc2/epicyon
Simplify
parent
0c4b8e11c2
commit
c06ebac48e
10
daemon.py
10
daemon.py
|
@ -6857,16 +6857,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
"""Returns a font
|
||||
"""
|
||||
font_str = path.split('/fonts/')[1]
|
||||
if self.server.dyslexic_font:
|
||||
if font_str.endswith('.otf'):
|
||||
font_str = 'OpenDyslexic-Regular.otf'
|
||||
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 \
|
||||
font_str.endswith('.ttf') or \
|
||||
font_str.endswith('.woff') or \
|
||||
|
|
Loading…
Reference in New Issue