summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-04-05 20:26:53 (GMT)
committerTobias Markmann <tm@ayena.de>2016-04-25 12:44:15 (GMT)
commitb58ad7f4b01623a8807b8c268208bd9c8496f4e2 (patch)
treebc2f61eb97c80db81b2eaa9e26db5209cc1d99dc /Swift/resources
parentef341e4762b1017047555c37dac1dfdc6ba2489d (diff)
downloadswift-b58ad7f4b01623a8807b8c268208bd9c8496f4e2.zip
swift-b58ad7f4b01623a8807b8c268208bd9c8496f4e2.tar.bz2
Add Lato font and use it in chat view theme
The font has been imported from the TTF version available from http://www.latofonts.com/lato-free-fonts/ . This commit also adds default parameters to all Qt resource compiler calls, so that files that compress by more than 5% are compressed with the highest compression level. Ideally this will lead to smaller resource C++ source code files that will require less runtime memory when compiled. VS's cl.exe is particular resource hungry. Test-Information: Started Swift and verified the new font is used correctly in chat views. Change-Id: I0b450819b0f50041e768deca6e0ef5619b45d7bf
Diffstat (limited to 'Swift/resources')
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Black.ttfbin0 -> 614544 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-BlackItalic.ttfbin0 -> 672480 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Bold.ttfbin0 -> 657188 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-BoldItalic.ttfbin0 -> 699008 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Hairline.ttfbin0 -> 584784 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-HairlineItalic.ttfbin0 -> 609436 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Heavy.ttfbin0 -> 665420 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-HeavyItalic.ttfbin0 -> 698924 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Italic.ttfbin0 -> 723544 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Light.ttfbin0 -> 644556 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-LightItalic.ttfbin0 -> 658212 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Medium.ttfbin0 -> 637068 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-MediumItalic.ttfbin0 -> 695588 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Regular.ttfbin0 -> 657212 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Semibold.ttfbin0 -> 669228 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-SemiboldItalic.ttfbin0 -> 698028 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-Thin.ttfbin0 -> 627220 bytes
-rw-r--r--Swift/resources/themes/Default/Lato2OFL/Lato-ThinItalic.ttfbin0 -> 654216 bytes
-rwxr-xr-xSwift/resources/themes/Default/Lato2OFL/OFL.txt94
-rwxr-xr-xSwift/resources/themes/Default/Lato2OFL/README.txt72
-rw-r--r--Swift/resources/themes/Default/Template.html2
-rw-r--r--Swift/resources/themes/Default/lato.css144
22 files changed, 311 insertions, 1 deletions
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Black.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Black.ttf
new file mode 100644
index 0000000..e2aeb6c
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Black.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-BlackItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-BlackItalic.ttf
new file mode 100644
index 0000000..8167388
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-BlackItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Bold.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Bold.ttf
new file mode 100644
index 0000000..ef5ae3b
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Bold.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-BoldItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-BoldItalic.ttf
new file mode 100644
index 0000000..664cd02
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-BoldItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Hairline.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Hairline.ttf
new file mode 100644
index 0000000..4c5a8fd
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Hairline.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-HairlineItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-HairlineItalic.ttf
new file mode 100644
index 0000000..af5ac3d
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-HairlineItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Heavy.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Heavy.ttf
new file mode 100644
index 0000000..fc70ab7
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Heavy.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-HeavyItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-HeavyItalic.ttf
new file mode 100644
index 0000000..823188c
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-HeavyItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Italic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Italic.ttf
new file mode 100644
index 0000000..b23256f
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Italic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Light.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Light.ttf
new file mode 100644
index 0000000..0809b8e
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Light.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-LightItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-LightItalic.ttf
new file mode 100644
index 0000000..2d03739
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-LightItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Medium.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Medium.ttf
new file mode 100644
index 0000000..2c612da
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Medium.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-MediumItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-MediumItalic.ttf
new file mode 100644
index 0000000..63ecd02
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-MediumItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Regular.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Regular.ttf
new file mode 100644
index 0000000..adbfc46
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Regular.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Semibold.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Semibold.ttf
new file mode 100644
index 0000000..60ac82d
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Semibold.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-SemiboldItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-SemiboldItalic.ttf
new file mode 100644
index 0000000..cc23390
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-SemiboldItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-Thin.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-Thin.ttf
new file mode 100644
index 0000000..0f84dc1
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-Thin.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/Lato-ThinItalic.ttf b/Swift/resources/themes/Default/Lato2OFL/Lato-ThinItalic.ttf
new file mode 100644
index 0000000..7fbca2f
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/Lato-ThinItalic.ttf
Binary files differ
diff --git a/Swift/resources/themes/Default/Lato2OFL/OFL.txt b/Swift/resources/themes/Default/Lato2OFL/OFL.txt
new file mode 100755
index 0000000..8a7280e
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/OFL.txt
@@ -0,0 +1,94 @@
+Copyright (c) 2010-2015, Ɓukasz Dziedzic (dziedzic@typoland.com),
+with Reserved Font Name Lato.
+
+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.
diff --git a/Swift/resources/themes/Default/Lato2OFL/README.txt b/Swift/resources/themes/Default/Lato2OFL/README.txt
new file mode 100755
index 0000000..272db62
--- /dev/null
+++ b/Swift/resources/themes/Default/Lato2OFL/README.txt
@@ -0,0 +1,72 @@
+
+Lato font family (Desktop version)
+
+==================================
+
+Version 2.015; Latin+Cyrillic+Greek+IPA opensource
+
+Created by: tyPoland Lukasz Dziedzic
+Creation year: 2015
+
+Copyright (c) 2010-2015 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.
+
+Lato is a trademark of tyPoland Lukasz Dziedzic.
+
+Source URL: http://www.latofonts.com/
+License URL: http://scripts.sil.org/OFL
+
+================
+
+Lato is a sanserif typeface family designed in the Summer 2010 and extended in the Summer 2013 by Warsaw-based designer Lukasz Dziedzic ("Lato" means "Summer" in Polish). It tries to carefully balance some potentially conflicting priorities: it should seem quite "transparent" when used in body text but would display some original traits when used in larger sizes. The classical proportions, particularly visible in the uppercase, give the letterforms familiar harmony and elegance. At the same time, its sleek sanserif look makes evident the fact that Lato was designed in the 2010s, even though it does not follow any current trend. The semi-rounded details of the letters give Lato a feeling of warmth, while the strong structure provides stability and seriousness. In 2013-2014, the family was greatly extended (with the help of Adam Twardoch and Botio Nikoltchev) to cover 3000+ glyphs over nine weights with italics. It now supports 100+ Latin-based languages, 50+ Cyrillic-based languages as well as Greek and IPA phonetics. The Lato fonts are available free of charge under the SIL Open Font License from http://www.latofonts.com/
+
+================
+
+CONTENTS:
+
+This folder contains 18 font files in OpenType TT (.ttf) format. You can install these fonts on your computer and use in any desktop applications (such as Word, InDesign, Illustrator, Photoshop, Keynote or Pages).
+
+================
+
+REVISION LOG:
+
+# Version 2.015 (2015-08-06)
+Initial implementation of mark positioning (should work for most glyphs)
+Autohinted using ttfautohint 1.3.
+
+# Version 2.010 (2014-09-01)
+Improved some contour bugs and diacritics positioning.
+Improved outline quality.
+Revised OTL features so that they work in browsers (ot-sanitise).
+Autohinted using ttfautohint 1.1.
+Interpolated the Medium weight differently so it provides more visual difference from Regular.
+
+# Version 2.007 (2014-02-27)
+Greatly expanded character set, revised metrics, four additional weights.
+
+# Version 1.104 (2011-11-08)
+Merged the distribution again
+Autohinted with updated ttfautohint 0.4 (which no longer causes Adobe and iOS problems)
+except the Hai and Lig weights which are hinted in FLS 5.1.
+
+# Version 1.102 (2011-10-28)
+Added OpenType Layout features
+Ssplit between desktop and web versions
+Desktop version: all weights autohinted with FontLab Studio
+Web version autohinted with ttfautohint 0.4 except the Hai and Lig weights
+
+# Version 1.101 (2011-09-30)
+Fixed OS/2 table Unicode and codepage entries
+
+# Version 1.100 (2011-09-12)
+Added Polish diacritics to the character set
+Weights Hai and Lig autohinted with FontLab Studio
+Other weights autohinted with ttfautohint 0.3
+
+# Version 1.011 (2010-12-29)
+Added the soft hyphen glyph
+
+# Version 1.010 (2010-12-13)
+Initial version released under SIL Open Font License
+Western character set
+
+================
diff --git a/Swift/resources/themes/Default/Template.html b/Swift/resources/themes/Default/Template.html
index a759ab5..fe2f599 100644
--- a/Swift/resources/themes/Default/Template.html
+++ b/Swift/resources/themes/Default/Template.html
@@ -3,8 +3,8 @@
<html lang="en">
<head>
<meta charset="utf-8">
+ <link rel="stylesheet" href="qrc:///themes/Default/lato.css"/>
<link rel="stylesheet" href="qrc:///themes/Default/main.css"/>
- <!--<link href='https://fonts.googleapis.com/css?family=Lato:400,300,700' rel='stylesheet' type='text/css'-->
<style id="text-resize-style">
</style>
</head>
diff --git a/Swift/resources/themes/Default/lato.css b/Swift/resources/themes/Default/lato.css
new file mode 100644
index 0000000..e081767
--- /dev/null
+++ b/Swift/resources/themes/Default/lato.css
@@ -0,0 +1,144 @@
+@font-face {
+ font-family: 'LatoBlack';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Black.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoBlack';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-BlackItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoBold';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Bold.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoBold';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-BoldItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoHairline';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Hairline.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoHairline';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-HairlineItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoHeavy';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Heavy.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoHeavy';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-HeavyItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'Lato';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Italic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoLight';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Light.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoLight';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-LightItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoMedium';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Medium.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoMedium';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-MediumItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'Lato';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Regular.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoSemibold';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Semibold.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoSemibold';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-SemiboldItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoThin';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-Thin.ttf') format('truetype');
+ font-style: normal;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+
+@font-face {
+ font-family: 'LatoThin';
+ src: url('qrc:///themes/Default/Lato2OFL/Lato-ThinItalic.ttf') format('truetype');
+ font-style: italic;
+ font-weight: normal;
+ text-rendering: optimizeLegibility;
+}
+