Commit 33e1f980 authored by Fabian Greffrath's avatar Fabian Greffrath

Imported Upstream version 2.00.1

parent 056775b6
AUTHORS
Current Contributors (sorted alphabetically):
- Caius 'kaio' Chance <caius.chance at gmail.com>
Project Owner (2010)
Red Hat, Inc.
- Denis Jacquerye <moyogo at gmail.com>
Project Contributor
- Herbert Duerr <duerr at sun.com>
Narrow Fonts Contributor
Oracle, Inc.
- Pravin Satpute <psatpute at redhat dot com>
Project Owner (Current)
Red Hat, Inc.
......@@ -20,8 +8,5 @@ Current Contributors (sorted alphabetically):
Previous Contributors
- Steve Matteson
Original Designer (support period expired)
Original Designer
Ascender, Inc.
- Mark Webbink <mwebbink AT redhat.com>
Release coordinator, Red Hat Inc.
This diff is collapsed.
This diff is collapsed.
Digitized data copyright (c) 2010 Google Corporation
with Reserved Font Arimo, Tinos and Cousine.
Copyright (c) 2012 Red Hat, Inc.
with Reserved Font Name Liberation.
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.
LICENSE AGREEMENT AND LIMITED PRODUCT WARRANTY
LIBERATION FONT SOFTWARE
This agreement governs the use of the Software and any updates to the Software, regardless of the delivery mechanism. Subject to the following terms, Red Hat, Inc. ("Red Hat") grants to the user ("Client") a license to this work pursuant to the GNU General Public License v.2 with the exceptions set forth below and such other terms as are set forth in this End User License Agreement.
1. The Software and License Exception. LIBERATION font software (the "Software") consists of TrueType-OpenType formatted font software for rendering LIBERATION typefaces in sans-serif, serif, and monospaced character styles. You are licensed to use, modify, copy, and distribute the Software pursuant to the GNU General Public License v.2 with the following exceptions:
(a) As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.
(b) As a further exception, any distribution of the object code of the Software in a physical product must provide you the right to access and modify the source code for the Software and to reinstall that modified version of the Software in object code form on the same physical product on which you received it.
2. Intellectual Property Rights. The Software and each of its components, including the source code, documentation, appearance, structure and organization are owned by Red Hat and others and are protected under copyright and other laws. Title to the Software and any component, or to any copy, modification, or merged portion shall remain with the aforementioned, subject to the applicable license. The "LIBERATION" trademark is a trademark of Red Hat, Inc. in the U.S. and other countries. This agreement does not permit Client to distribute modified versions of the Software using Red Hat's trademarks. If Client makes a redistribution of a modified version of the Software, then Client must modify the files names to remove any reference to the Red Hat trademarks and must not use the Red Hat trademarks in any way to reference or promote the modified Software.
3. Limited Warranty. To the maximum extent permitted under applicable law, the Software is provided and licensed "as is" without warranty of any kind, expressed or implied, including the implied warranties of merchantability, non-infringement or fitness for a particular purpose. Red Hat does not warrant that the functions contained in the Software will meet Client's requirements or that the operation of the Software will be entirely error free or appear precisely as described in the accompanying documentation.
4. Limitation of Remedies and Liability. To the maximum extent permitted by applicable law, Red Hat or any Red Hat authorized dealer will not be liable to Client for any incidental or consequential damages, including lost profits or lost savings arising out of the use or inability to use the Software, even if Red Hat or such dealer has been advised of the possibility of such damages.
5. General. If any provision of this agreement is held to be unenforceable, that shall not affect the enforceability of the remaining provisions. This agreement shall be governed by the laws of the State of North Carolina and of the United States, without regard to any conflict of laws provisions, except that the United Nations Convention on the International Sale of Goods shall not apply.
Copyright © 2007-2011 Red Hat, Inc. All rights reserved. LIBERATION is a trademark of Red Hat, Inc.
VER = 1.07.2
#VER = 1.06.0.$(shell date +%Y%m%d)
FONTFORGE = fontforge
# common targets:
# <no target>, build, ttf-dir: create dedicated dir with TTF files
# ttf: create export dir with TTF files, track changes
# 4web: dtto for TTF, WOFF, SVG, and EOT
TMPDIR := $(shell mktemp -d)
SFDFILES := src/LiberationMono-Bold.sfd src/LiberationMono-BoldItalic.sfd src/LiberationMono-Italic.sfd src/LiberationMono-Regular.sfd src/LiberationSans-Bold.sfd src/LiberationSans-BoldItalic.sfd src/LiberationSans-Italic.sfd src/LiberationSans-Regular.sfd src/LiberationSerif-Bold.sfd src/LiberationSerif-BoldItalic.sfd src/LiberationSerif-Italic.sfd src/LiberationSerif-Regular.sfd src/LiberationSansNarrow-Regular.sfd src/LiberationSansNarrow-Bold.sfd src/LiberationSansNarrow-Italic.sfd src/LiberationSansNarrow-BoldItalic.sfd
SCRIPTS := scripts/sfd2ttf.pe scripts/ttf2sfd.pe
MISCFILES := AUTHORS ChangeLog COPYING License.txt README TODO
FONTFORGE = fontforge
PYTHON = python
FONTLINT = fontlint
all: build
# TTF->EOT converters in fallback order
# the first one is canonical choice used in the release process
MKEOT = mkeot
# URLs to be used for root string within EOT file;
# defaults to "libre roots" that allow usage on any common web page
MKEOT_URLS = http:// https:// file://
TTF2EOT = ttf2eot
ifneq ($(strip $(shell which $(MKEOT) 2>/dev/null)),)
make_eot = $(MKEOT) $(1) $(MKEOT_URLS) > $(2)
else
ifneq ($(strip $(shell which $(TTF2EOT) 2>/dev/null)),)
make_eot = $(TTF2EOT) $(1) > $(2)
else
make_eot = $(error No tool for TTF->EOT conversion: $(MKEOT), $(TTF2EOT))
endif
endif
build:
$(foreach sfdfile, $(SFDFILES), $(FONTFORGE) -script ./scripts/sfd2ttf.pe $(sfdfile);)
mkdir -p liberation-fonts-ttf-$(VER)/
mv src/*.ttf liberation-fonts-ttf-$(VER)/
EXPORTSCRIPT = scripts/fontexport.pe
FONTTOOLSCRIPT = scripts/setisFixedPitch-fonttools.py
SCRIPTS = $(EXPORTSCRIPT) scripts/sfd2ttf.pe scripts/ttf2sfd.pe
MISCFILES = AUTHORS ChangeLog LICENSE README TODO
SRCDIR = src
EXPORTDIR = export
CHECK_PREFIX = check
dist: dist-sfd dist-ttf
VER = 2.00.1
NAME = Liberation
VARIANTS = \
Mono-Regular Mono-Bold Mono-Italic Mono-BoldItalic \
Sans-Regular Sans-Bold Sans-Italic Sans-BoldItalic \
Serif-Regular Serif-Bold Serif-Italic Serif-BoldItalic
DISTPREFIX := liberation-fonts-$(VER)
DISTPREFIX_TTF := liberation-fonts-ttf-$(VER)
SFDFILES := $(addprefix $(SRCDIR)/$(NAME), $(VARIANTS:=.sfd))
TTFFILES := $(addprefix $(EXPORTDIR)/$(NAME), $(VARIANTS:=.ttf))
# keeping backward compatibility for "build"
all build: ttf-dir
$(EXPORTDIR):
mkdir -p $@
# TrueType/OpenType Font, general usage
# - ttf cares about source file changes, using shared EXPORTDIR
# - ttf-dir should be a bit more efficient, creating dedicated dir for TTF
FORMATS = ttf
ttf-dir:: $(SFDFILES)
$(FONTFORGE) -script $(EXPORTSCRIPT) -ttf $^
$(PYTHON) $(FONTTOOLSCRIPT) src/LiberationMono-*.ttf
mv src/LiberationMono-Regular-fixed.ttf src/LiberationMono-Regular.ttf
mv src/LiberationMono-Italic-fixed.ttf src/LiberationMono-Italic.ttf
mv src/LiberationMono-Bold-fixed.ttf src/LiberationMono-Bold.ttf
mv src/LiberationMono-BoldItalic-fixed.ttf src/LiberationMono-BoldItalic.ttf
mkdir -p $(DISTPREFIX_TTF)
mv $(addsuffix .ttf,$(basename $^)) $(DISTPREFIX_TTF)
# web sites usage
# Web Open Font Format (WOFF); for all modern browsers (W3C recommendation)
FORMATS += woff
# SVG Font; only for WebKit and Presto based browsers (Firefox "avoids" it)
FORMATS += svg
# Embedded OpenType (EOT); MSIE only [extra recipe, FontForge can't create EOT]
FORMATS += eot
eot:: $(addprefix $(EXPORTDIR)/$(NAME), $(VARIANTS:=.eot))
@echo
$(EXPORTDIR)/%.eot: $(EXPORTDIR)/%.ttf | $(EXPORTDIR)
$(call make_eot,$<,$@)
4web: ttf woff svg eot
# XXX: declare other formats here if needed (TeX, etc.)
# default for formats without extra recipes defined above (e.g., not "eot"):
# summary per-format target + single file export for these declared formats
define FORMAT_template =
$(1):: $$(addprefix $$(EXPORTDIR)/$$(NAME), $$(VARIANTS:=.$(1)))
@echo
$$(EXPORTDIR)/%.$(1):: $$(SRCDIR)/%.sfd | $$(EXPORTDIR)
$$(FONTFORGE) -script $$(EXPORTSCRIPT) -$$(lastword $$(subst ., ,$$@)) $$< 2>/dev/null
mv $$(SRCDIR)/$$(notdir $$@) $$(EXPORTDIR)
endef
$(foreach format,$(FORMATS),$(eval $(call FORMAT_template,$(format))))
dist: clean-dist dist-sfd dist-ttf
dist-src: dist-sfd
dist-sfd:
mkdir -p $(TMPDIR)/liberation-fonts-$(VER)/{src,scripts}
cp ../README ./
cp Makefile $(MISCFILES) $(TMPDIR)/liberation-fonts-$(VER)/
cp $(SFDFILES) $(TMPDIR)/liberation-fonts-$(VER)/src/
cp $(SCRIPTS) $(TMPDIR)/liberation-fonts-$(VER)/scripts/
tar Cczvf $(TMPDIR)/ liberation-fonts-$(VER).tar.gz \
liberation-fonts-$(VER)/
dist-ttf: clean-ttf build
cp $(MISCFILES) liberation-fonts-ttf-$(VER)/
tar czvf liberation-fonts-ttf-$(VER).tar.gz liberation-fonts-ttf-$(VER)/
# zip -j liberation-fonts-ttf-$(VER).zip liberation-fonts-ttf-$(VER)/*
rm -rf liberation-fonts-ttf-$(VER)
clean: clean-ttf clean-src
clean-ttf:
rm -rf ttf liberation-fonts-*
clean-src:
rm -f *.tar.gz
dist-sfd:: $(SFDFILES)
tempdir=$$(mktemp -d) \
&& mkdir -p $${tempdir}/$(DISTPREFIX)/{src,scripts} \
&& cp Makefile $(MISCFILES) $${tempdir}/$(DISTPREFIX) \
&& cp $(SFDFILES) $${tempdir}/$(DISTPREFIX)/src \
&& cp $(SCRIPTS) $(FONTTOOLSCRIPT) $${tempdir}/$(DISTPREFIX)/scripts \
&& tar Cczvhf $${tempdir} $(DISTPREFIX).tar.gz $(DISTPREFIX) \
|| echo 'Problem encountered ($@)'; rm -rf -- $${tempdir}
dist-ttf: ttf
$(PYTHON) $(FONTTOOLSCRIPT) export/LiberationMono-*.ttf
mv export/LiberationMono-Regular-fixed.ttf export/LiberationMono-Regular.ttf
mv export/LiberationMono-Italic-fixed.ttf export/LiberationMono-Italic.ttf
mv export/LiberationMono-Bold-fixed.ttf export/LiberationMono-Bold.ttf
mv export/LiberationMono-BoldItalic-fixed.ttf export/LiberationMono-BoldItalic.ttf
tempdir=$$(mktemp -d) \
&& mkdir -p $${tempdir}/$(DISTPREFIX_TTF) \
&& cp $(MISCFILES) $(TTFFILES) $${tempdir}/$(DISTPREFIX_TTF) \
&& tar Cczvhf $${tempdir} $(DISTPREFIX_TTF).tar.gz $(DISTPREFIX_TTF) \
|| echo 'Problem encountered ($@)'; rm -rf -- $${tempdir}
# substitute tar line with this if needed:
# && zip -j $(DISTPREFIX_TTF).zip $(MISCFILES) $(TTFFILES) \
check:
log="$(CHECK_PREFIX)_$$(git describe --dirty --always 2>/dev/null||date +%Y%m%d)" \
&& for sfd in $(SFDFILES); do \
$(FONTLINT) $${sfd} 2>/dev/null | tee -a $${log}; echo; \
done
clean: clean-dist
rm -rf -- $(DISTPREFIX)* $(DISTPREFIX_TTF)*
rm -rf -- $(EXPORTDIR)
rm -f -- $(CHECK_PREFIX)_*
clean-dist:
rm -f -- *.tar.gz *.zip
.PHONY: all build ttf-dir ttf dist dist-src dist-sfd dist-ttf 4web $(FORMATS) check clean clean-dist
......@@ -49,12 +49,10 @@
5. License
============
This font set had been released under GNU Public License version 2
("GPLv2") with exceptions.
This Font Software is licensed under the SIL Open Font License,
Version 1.1.
Please read file "COPYING" for GPLv2 license.
Please read file "License.txt" for details of exceptions.
Please read file "LICENSE" for details.
6. For Maintainers
......
Here are todo for next release
1) resolving bug related with hinting
- https://bugzilla.redhat.com/show_bug.cgi?id=606217
- https://bugzilla.redhat.com/show_bug.cgi?id=591556
- https://bugzilla.redhat.com/show_bug.cgi?id=591554
- https://bugzilla.redhat.com/show_bug.cgi?id=768067
- https://bugzilla.redhat.com/show_bug.cgi?id=715309
- https://bugzilla.redhat.com/show_bug.cgi?id=714191
2) Ascent Descent Values Improvement
- using absolute values instead of relative values in OS/2 table
3) RFE: Add Greek Polytonic support to Liberation fonts
- need some volunteer to add these shapes
- https://bugzilla.redhat.com/show_bug.cgi?id=473842
1) Serbian glyph for wikipedia https://bugzilla.redhat.com/show_bug.cgi?id=657849
- Improving shape of S_BE https://bugzilla.redhat.com/show_bug.cgi?id=657849#c96
2) Liberation Mono not recognizing as Mono in Windows application #861003
- presently it is patch, we have to update zero width characters to fixed width
# FontForge script to export font file(s) in selectable format
# TODO: 0x800 fmflags only for TTF?
if ($argc <= 1)
Print("usage: script [-<format>] file1 ...")
Print("(default format is ttf)")
return(1)
endif
format = "ttf"
if (Strstr($1, "-") == 0)
format = Strsub($1, 1)
shift
endif
while ($argc > 1)
Print("Generating " + format + " from " + $1)
Open($1)
Generate($1:r + "." + format, "", 0x800)
Close()
shift
endloop
#!/usr/bin/env python
#
# setisFixedPitch-fonttools.py
#
# Copyright (c) 2012 Pravin Satpute <psatpute@redhat.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This program takes a TTF font and set isFixedPitch bit used to detect font as a Monospace.
#
# This script depends on fontTools Python library, available
# in most packaging systems and sf.net/projects/fonttools/
#
# Usage:
#
# $ ./setisFixedPitch-fonttools.py FontIn.ttf
# input font will be overwriten and backup will be created for input font
# Import our system library and fontTools ttLib
import os, sys
from fontTools import ttLib
from fontTools.ttLib.tables import ttProgram
for i in range(1, len(sys.argv)):
# Open the font file supplied as the first argument on the command line
fontfile = sys.argv[i]
print fontfile
font = ttLib.TTFont(fontfile)
# Print the Post table
if font.has_key('post'):
if font["post"].isFixedPitch == 0:
font["post"].isFixedPitch = 1
print "isFixedPitch is now: ", font["post"].isFixedPitch
else:
print "Post table not found"
# Save the new file with the name of the input file
newfont = fontfile[0:-4] + '-fixed' + fontfile[-4:]
font.save(newfont)
print newfont, "saved."
#os.system("mv" + " " + "src/LiberationMono-Regular-fixed.ttf" + " " + "src/LiberationMono-Regular.ttf")
#os.system("mv" + " " + "src/LiberationMono-Italic-fixed.ttf" + " " + "src/LiberationMono-Italic.ttf")
#os.system("mv" + " " + "src/LiberationMono-Bold-fixed.ttf" + " " + "src/LiberationMono-Bold.ttf")
#os.system("mv" + " " + "src/LiberationMono-BoldItalic-fixed.ttf" + " " + "src/LiberationMono-BoldItalic.ttf")
#os.system("mv" + " " + "export/LiberationMono-Regular-fixed.ttf" + " " + "export/LiberationMono-Regular.ttf")
#os.system("mv" + " " + "export/LiberationMono-Italic-fixed.ttf" + " " + "export/LiberationMono-Italic.ttf")
#os.system("mv" + " " + "export/LiberationMono-Bold-fixed.ttf" + " " + "export/LiberationMono-Bold.ttf")
#os.system("mv" + " " + "export/LiberationMono-BoldItalic-fixed.ttf" + " " + "export/LiberationMono-BoldItalic.ttf")
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment