]> git.koha-community.org Git - koha.git/commit
Bug 20554: (follow-up) Add local font files and add method for loading them
authorOwen Leonard <oleonard@myacpl.org>
Fri, 20 Apr 2018 17:08:21 +0000 (17:08 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 19 Oct 2018 17:27:42 +0000 (17:27 +0000)
commit2497ef5f0a619e397ecbf6f267d7dd7b8021812a
tree53ed5964c639b1f05bd351af32d1429cd9a38205
parent56104cb6c0873f993add85911b89a493fc73480a
Bug 20554: (follow-up) Add local font files and add method for loading them

This patch adds local copies of the font files specified in the original
patch. A new JavaScript file has been added, fontfaceobserver.min.js,
which helps gracefully load font assets.

https://github.com/bramstein/fontfaceobserver

Information about the new assets has been added to the about page.

When using web fonts, there can be a delay, while the browser loads the
font files, between the time the page loads and the time the fonts
render. Font Face Observer allows us to specify a default font for the
initial page render, and then apply the web font after it has loaded.

To test, apply the patch and regenerate the OPAC css. View any page in
the OPAC and confirm that the custom font renders properly.

View the About page in the staff client and confirm that the new license
information looks correct.

Patch applies and OPAC and license look good. Looking forward to this.
Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
14 files changed:
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-Bold-webfont.woff [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-Bold-webfont.woff2 [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-BoldItalic-webfont.woff [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-BoldItalic-webfont.woff2 [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-Italic-webfont.woff [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-Italic-webfont.woff2 [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-Regular-webfont.woff [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/fonts/NotoSans-Regular-webfont.woff2 [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/js/global.js
koha-tmpl/opac-tmpl/bootstrap/lib/fontfaceobserver.min.js [new file with mode: 0644]