mirror of
https://github.com/krateng/maloja.git
synced 2025-04-15 16:30:32 +03:00
Added hosted font
This commit is contained in:
parent
7b3e1bbaa6
commit
6b05dde7c0
@ -206,7 +206,7 @@ def login():
|
||||
@webserver.route("/<name>.<ext>")
|
||||
@webserver.route("/media/<name>.<ext>")
|
||||
def static(name,ext):
|
||||
assert ext in ["txt","ico","jpeg","jpg","png","less","js"]
|
||||
assert ext in ["txt","ico","jpeg","jpg","png","less","js","ttf"]
|
||||
response = static_file(ext + "/" + name + "." + ext,root=STATICFOLDER)
|
||||
response.set_header("Cache-Control", "public, max-age=3600")
|
||||
return response
|
||||
|
@ -1,45 +1,7 @@
|
||||
/* cyrillic-ext */
|
||||
|
||||
@font-face {
|
||||
font-family: 'Ubuntu';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url(https://fonts.gstatic.com/s/ubuntu/v14/4iCs6KVjbNBYlgoKcg72j00.woff2) format('woff2');
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Ubuntu';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url(https://fonts.gstatic.com/s/ubuntu/v14/4iCs6KVjbNBYlgoKew72j00.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Ubuntu';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url(https://fonts.gstatic.com/s/ubuntu/v14/4iCs6KVjbNBYlgoKcw72j00.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Ubuntu';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url(https://fonts.gstatic.com/s/ubuntu/v14/4iCs6KVjbNBYlgoKfA72j00.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Ubuntu';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url(https://fonts.gstatic.com/s/ubuntu/v14/4iCs6KVjbNBYlgoKcQ72j00.woff2) format('woff2');
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Ubuntu';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url(https://fonts.gstatic.com/s/ubuntu/v14/4iCs6KVjbNBYlgoKfw72.woff2) format('woff2');
|
||||
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url('/Ubuntu-Regular.ttf') format('woff2');
|
||||
}
|
||||
|
BIN
maloja/web/static/ttf/Ubuntu-Bold.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-Bold.ttf
Normal file
Binary file not shown.
BIN
maloja/web/static/ttf/Ubuntu-BoldItalic.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
maloja/web/static/ttf/Ubuntu-Italic.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-Italic.ttf
Normal file
Binary file not shown.
BIN
maloja/web/static/ttf/Ubuntu-Light.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-Light.ttf
Normal file
Binary file not shown.
BIN
maloja/web/static/ttf/Ubuntu-LightItalic.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-LightItalic.ttf
Normal file
Binary file not shown.
BIN
maloja/web/static/ttf/Ubuntu-Medium.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-Medium.ttf
Normal file
Binary file not shown.
BIN
maloja/web/static/ttf/Ubuntu-MediumItalic.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
maloja/web/static/ttf/Ubuntu-Regular.ttf
Normal file
BIN
maloja/web/static/ttf/Ubuntu-Regular.ttf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user