Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KNU & Paduak font addition #1567

Merged
merged 1 commit into from
Jun 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cadasta/core/static/css/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ $body-bg: #f2f4f7;

//== Typography

$font-family-sans-serif: 'Roboto', Helvetica, Arial, 'Noto Sans Bengali', sans-serif;
$font-family-sans-serif-alt: 'Roboto Condensed', 'Roboto', Helvetica, 'Noto Sans Bengali', sans-serif;
$font-family-sans-serif: Roboto, Helvetica, Arial, 'KNU Unicode', PadaukW, 'Noto Sans Bengali', sans-serif;
$font-family-sans-serif-alt: 'Roboto Condensed', Roboto, Helvetica, 'KNU Unicode', PadaukW, 'Noto Sans Bengali', sans-serif;

//== Header

Expand Down
34 changes: 25 additions & 9 deletions cadasta/core/static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,26 @@
}

@font-face {
font-family: 'Noto Sans Bengali';
src: url('/static/fonts/NotoSansBengali/NotoSansBengali-Regular.ttf') format('truetype');
font-weight: 300;
font-style: normal;
font-family: 'PadaukW';
src: url('/static/fonts/Padauk/Padauk-Regular.woff') format('woff'),
url('/static/fonts/Padauk/Padauk-Regular.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: 'KNU Unicode';
src: url('/static/fonts/KNU/knuunicode-webfont.woff') format('woff'),
url('/static/fonts/KNU/knuunicode-webfont.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: 'Noto Sans Bengali';
src: url('/static/fonts/NotoSansBengali/NotoSansBengali-Regular.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}

/* =Basics
Expand Down Expand Up @@ -226,7 +242,7 @@ main.container-fluid {
}

#project-single #page-content main.show-sidebar,
#organization-single #page-content main.show-sidebar {
#organization-single #page-content main.show-sidebar {
margin-left: 100px;
}

Expand All @@ -235,7 +251,7 @@ main.container-fluid {
padding-bottom: 0;
}
#project-single #page-content main,
#organization-single #page-content main,
#organization-single #page-content main,
#project-single #page-content main.show-sidebar,
#organization-single #page-content main.show-sidebar,
#organization-single #page-content main {
Expand Down Expand Up @@ -428,7 +444,7 @@ table#select-list {
font-size: 12px;
}
.form-control {
padding: 6px;
padding: 6px;
}
}

Expand Down Expand Up @@ -674,7 +690,7 @@ h1 .label {
font-size: 16px;
}

.entity { // small entity title above link
.entity { // small entity title above link
font-size: 14px;
font-weight: normal;
color: $gray-medium;
Expand All @@ -683,7 +699,7 @@ h1 .label {
letter-spacing: 0;
}

.text-wrap .entity { // map popovers
.text-wrap .entity { // map popovers
font-size: 11px;
}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added cadasta/core/static/fonts/Padauk/Padauk-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
40 changes: 40 additions & 0 deletions cadasta/core/static/fonts/Padauk/support/FONTLOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FONTLOG for Padauk

See README.txt for details about the font.

Changelog
10 March 2017. Version 3.003
- Run ttfautohint 1.6 which has support for Myanmar

22 November 2016. Version 3.002
- Run ttx optimisation during the build to reduce file size
- Change font file names to more conventional file naming practice

15th September 2016. Version 3.001
- Change lower ascii characters from being marks to spacing

7th June 2016. Version 3.0
- Add mym2 OpenType support
- Support minority languages in OpenType
- Support 4 faces, book and regular in bold and regular

Acknowledgements

N: Martin Hosken
D: Chief Engineer

N: Jon Coblentz
D: OpenType engineering

N: Bobby deVos
D: Font engineer

N: Keith Stribley
D: OpenType engineering

N: Debbi Hosken
D: Glyph design

N: Iska Routamaa
D: Glyph design, book & bold interpolations

427 changes: 427 additions & 0 deletions cadasta/core/static/fonts/Padauk/support/OFL-FAQ.txt

Large diffs are not rendered by default.

94 changes: 94 additions & 0 deletions cadasta/core/static/fonts/Padauk/support/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
Copyright 2007-2017 SIL International, all rights reserved
with Reserved Font Name "Padauk".

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions cadasta/core/static/fonts/Padauk/support/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Padauk

Padauk is a pan Burma font designed to support all Myanmar script based languages.
It covers all of the Unicode Myanmar script blocks and works on all OpenType
and Graphite based systems.

## Project status [![Build Status](http://build.palaso.org/app/rest/builds/buildType:Fonts_Padauk/statusIcon)](http://build.palaso.org/viewType.html?buildTypeId=Fonts_Padauk&guest=1)


Features:
* Special support for: ksw, kht, kyu, shn, aio, phk
* Variation Selector support for kht, aio, phk

Issues:
* Does not work in Word 2007

24 changes: 24 additions & 0 deletions cadasta/core/static/fonts/Padauk/support/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
README
Padauk
========================

Padauk is a pan Burma font designed to support all Myanmar script based
languages. It covers all of the Unicode Myanmar script blocks and works
on all OpenType and Graphite based systems.

Features:
* Special support for: ksw, kht, kyu, shn, aio, phk
* Variation Selector support for kht, aio, phk

Issues:
* Does not work in Word 2007


Padauk is released under the SIL Open Font License.
Padauk is a trademark of SIL International.

See the OFL and OFL-FAQ for details of the SIL Open Font License.
See the FONTLOG for information on this and previous releases.

For more information please visit the Padauk page on SIL International's
website: http://software.sil.org/padauk.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
DOCUMENTATION
Padauk
========================

This file describes the documentation files included with the Padauk
font. This information should be distributed along with the
Padauk font and any derivative works.

Primary documentation for the Padauk font is on the Padauk
website (http://software.sil.org/padauk/).

The Padauk-features.pdf file illustrates the use of OpenType and
Graphite features.

The Padauk-typesample.pdf file shows all the characters in the font
as well as some running text.

The Padauk-features.odt file illustrates the use of OpenType and
Graphite features (source file for the pdf).

The Padauk-typesample.odt file shows all the characters in the font
as well as some running text (source file for the pdf).
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
Padauk-webfont-example.css
Padauk font family

This file is part of Padauk font family (http://software.sil.org/padauk)
and is Copyright (c) 2017 SIL International (http://www.sil.org/),
with Reserved Font Names "Padauk". This Font Software is licensed
under the SIL Open Font License, Version 1.1. You should have received a copy
of the license along with this Font Software. If this is not the case, go to
(http://scripts.sil.org/OFL) for all the details including a FAQ.
*/


/* use Padauk - Regular in .woff format */
@font-face {
font-family: PadaukW;
src: url(Padauk-Regular.woff);
}

/* set body to use Padauk in .woff format */
body {
font-family: PadaukW, serif;
/* fall back to serif so that it's really obvious if the fonts don't load */
}



Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!doctype html>
<!--
Padauk-webfont-example.html
Padauk font family

This file is part of Padauk font family (http://software.sil.org/padauk)
and is Copyright (c) 2017 SIL International (http://www.sil.org/),
with Reserved Font Names "Padauk". This Font Software is licensed
under the SIL Open Font License, Version 1.1. You should have received a copy
of the license along with this Font Software. If this is not the case, go to
(http://scripts.sil.org/OFL) for all the details including a FAQ.
-->
<head>
<link rel="stylesheet" href="Padauk-webfont-example.css" type="text/css">
<meta charset="utf-8">
<meta name="description" content="An example of using Padauk on your web page via WOFF">
<meta name="author" content="NRSI, SIL International: scripts.sil.org">

</head>
<body>
<div style="font-size: 110%;">

<h1>Using Padauk webfonts</h1>

<p>The page demonstrates how to use the WOFF version of Padauk for web pages, using local copies of the .woff files in this archive. For more information on this technique - and how to use the normal TrueType version as a web font - see <a href="http://scripts.sil.org/using_web_fonts">Using SIL Fonts on Web Pages</a>.</p>

<p>The body of this document is styled using an external stylesheet, with Padauk set as the default font, and loaded directly as a WOFF file using the @font-face rule. If you're seeing a sans-serif font here and the Padauk typeface in the next paragraph, then it is working. Otherwise the text will be in a serif font or your browser default. This technique should work in Firefox 3.6+, Chrome 6+, IE 9+, Edge and in development versions of Safari.</p>

<p>Myanmar sample text (taken from <a href="http://www.unicode.org/udhr/d/udhr_mya.txt">Universal Declaration of Human Rights - Burmese</a>): </p>
<p> ၁၉၄၈ ခုနှစ်၊ဒီဇင်ဘာလ ၁၀ ရက်နေ့တွင် ကမ္ဘာ့ကုလသမဂ္ဂအဖွဲ့ညီလာခံ အစည်းအဝေးကြီးက လူ့အခွင့်အရေး ကြေညာစာတမ်းကြီးကို အတည်ပြု၍ ကြေညာလိုက်ရာထိုကြေညာစာတမ်းကြီး၏ စာသားသည်နောက်စာမျက်နှာ များတွင် အပြည့်အစုံပါရှိသည်။ ဤကဲ့သို့ရာဇဝင်တင်မည့် ကြေညာချက်ကို ပြုလုပ်ပြီးနောက် ဤညီလာခံအစည်းအဝေးကြီးက ကမ္ဘာ့ကုလသမဂ္ဂအဖွဲ့ဝင် နိုင်ငံ အားလုံးအား ထိုကြေညာစာတမ်းကြီး၏ စာသားကိုအများပြည်သူတို့ ကြားသိစေရန် ကြေညာပါမည့် အကြောင်းကိုလည်းကောင်း၊ ထို့ပြင်နိုင်ငံများ၊ သို့တည်းမဟုတ် နယ်မြေများ၏ နိုင်ငံရေး အဆင့်အတန်းကို လိုက်၍ ခွဲခြားခြင်း မပြုဘဲအဓိကအားဖြင့် စာသင်ကျောင်းများနှင့် အခြားပညာရေး အဖွဲ့အစည်းများတွင် ထိုကြေညာစာတမ်းကြီးကို ဖြန့်ချိ ဝေငှ စေရန်၊ မြင်သာအောင် ပြသထားစေရန်၊ဖတ်ကြားစေရန်နှင့် အဓိပ္ပါယ်ရှင်းလင်း ဖော်ပြစေရန် ဆောင်ရွက်ပါမည့် အကြောင်းဖြင့် လည်းကောင်း ဆင့်ဆို လိုက်သည်။ </p>

<p>To see specifically how these techniques are specified in the CSS and HTML view the source to this page and the accompanying CSS file.</p>

</body>
</html>
Binary file not shown.
Binary file not shown.
Loading