Import Upstream version 2.37

This commit is contained in:
openKylinBot 2022-05-13 20:22:30 +08:00
commit 64c348094e
52 changed files with 2969290 additions and 0 deletions

57
AUTHORS Normal file
View File

@ -0,0 +1,57 @@
abysta at yandex.ru
Adrian Schroeter
Aleksey Chalabyan
Andrey Valentinovich Panov
Ben Laenen
Besarion Gugushvili
Bhikkhu Pesala
Clayborne Arevalo
Dafydd Harries
Danilo Segan
Davide Viti
David Jez
David Lawrence Ramsey
Denis Jacquerye
Dwayne Bailey
Eugeniy Meshcheryakov
Frédéric Wang
Gee Fung Sit
Heikki Lindroos
James Cloos
James Crippen
John Karp
Keenan Pepper
Lars Næsbye Christensen
Lior Halphon
MaEr
Mashrab Kuvatov
Max Berger
Mederic Boquien
Michael Everson
MihailJP
Misu Moldovan
Nguyen Thai Ngoc Duy
Nicolas Mailhot
Norayr Chilingarian
Olleg Samoylov
Ognyan Kulev
Ondrej Koala Vacha
Peter Cernak
Remy Oudompheng
Roozbeh Pournader
Rouben Hakobian
Sahak Petrosyan
Sami Tarazi
Sander Vesik
Stepan Roh
Stephen Hartke
Steve Tinney
Tavmjong Bah
Thomas Henlich
Tim May
Valentin Stoykov
Vasek Stodulka
Wesley Transue
Yoshiki Ohshima
$Id$

3
BUGS Normal file
View File

@ -0,0 +1,3 @@
See http://dejavu.sourceforge.net/wiki/index.php/Bugs
$Id$

36
BUILDING Normal file
View File

@ -0,0 +1,36 @@
You need FontForge to build the fonts, on Debian known as "fontforge" package.
http://fontforge.github.io/en-US/
Also pearl module Font::TTF, Debian package "libfont-ttf-perl".
https://metacpan.org/release/Font-TTF/
Tool "make" to make, Debian package "make".
$ make full-ttf
will all fonts to TrueType format with all glyphs included
$ make lgc-ttf
will build the fonts with only the LGC (Latin-Greek-Cyrillic) subset
If you just do
$ make
you will also make new status files. In that case you need to have the following files
- Get the current Unicode files and copy them into the "resources" folder
wget http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
wget http://www.unicode.org/Public/UNIDATA/Blocks.txt
- Get the current fc-lang orthographies from the fontconfig repository:
git clone git://anongit.freedesktop.org/git/fontconfig ~/repos/fontconfig
- Create a symlink to the appropriate folder:
ln -s ~/repos/fontconfig/fc-lang resources/fc-lang

187
LICENSE Normal file
View File

@ -0,0 +1,187 @@
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
Bitstream Vera Fonts Copyright
------------------------------
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
a trademark of Bitstream, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of the fonts accompanying this license ("Fonts") and associated
documentation files (the "Font Software"), to reproduce and distribute the
Font Software, including without limitation the rights to use, copy, merge,
publish, distribute, and/or sell copies of the Font Software, and to permit
persons to whom the Font Software is furnished to do so, subject to the
following conditions:
The above copyright and trademark notices and this permission notice shall
be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular
the designs of glyphs or characters in the Fonts may be modified and
additional glyphs or characters may be added to the Fonts, only if the fonts
are renamed to names not containing either the words "Bitstream" or the word
"Vera".
This License becomes null and void to the extent applicable to Fonts or Font
Software that has been modified and is distributed under the "Bitstream
Vera" names.
The Font Software may be sold as part of a larger software package but no
copy of one or more of the Font Software typefaces may be sold by itself.
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 BITSTREAM OR THE GNOME
FOUNDATION 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.
Except as contained in this notice, the names of Gnome, the Gnome
Foundation, and Bitstream Inc., shall not be used in advertising or
otherwise to promote the sale, use or other dealings in this Font Software
without prior written authorization from the Gnome Foundation or Bitstream
Inc., respectively. For further information, contact: fonts at gnome dot
org.
Arev Fonts Copyright
------------------------------
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of the fonts accompanying this license ("Fonts") and
associated documentation files (the "Font Software"), to reproduce
and distribute the modifications to the Bitstream Vera Font Software,
including without limitation the rights to use, copy, merge, publish,
distribute, and/or sell copies of the Font Software, and to permit
persons to whom the Font Software is furnished to do so, subject to
the following conditions:
The above copyright and trademark notices and this permission notice
shall be included in all copies of one or more of the Font Software
typefaces.
The Font Software may be modified, altered, or added to, and in
particular the designs of glyphs or characters in the Fonts may be
modified and additional glyphs or characters may be added to the
Fonts, only if the fonts are renamed to names not containing either
the words "Tavmjong Bah" or the word "Arev".
This License becomes null and void to the extent applicable to Fonts
or Font Software that has been modified and is distributed under the
"Tavmjong Bah Arev" names.
The Font Software may be sold as part of a larger software package but
no copy of one or more of the Font Software typefaces may be sold by
itself.
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
TAVMJONG BAH 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.
Except as contained in this notice, the name of Tavmjong Bah shall not
be used in advertising or otherwise to promote the sale, use or other
dealings in this Font Software without prior written authorization
from Tavmjong Bah. For further information, contact: tavmjong @ free
. fr.
TeX Gyre DJV Math
-----------------
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
Math extensions done by B. Jackowski, P. Strzelczyk and P. Pianowski
(on behalf of TeX users groups) are in public domain.
Letters imported from Euler Fraktur from AMSfonts are (c) American
Mathematical Society (see below).
Bitstream Vera Fonts Copyright
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera
is a trademark of Bitstream, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of the fonts accompanying this license (“Fonts”) and associated
documentation
files (the “Font Software”), to reproduce and distribute the Font Software,
including without limitation the rights to use, copy, merge, publish,
distribute,
and/or sell copies of the Font Software, and to permit persons to whom
the Font Software is furnished to do so, subject to the following
conditions:
The above copyright and trademark notices and this permission notice
shall be
included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular
the designs of glyphs or characters in the Fonts may be modified and
additional
glyphs or characters may be added to the Fonts, only if the fonts are
renamed
to names not containing either the words “Bitstream” or the word “Vera”.
This License becomes null and void to the extent applicable to Fonts or
Font Software
that has been modified and is distributed under the “Bitstream Vera”
names.
The Font Software may be sold as part of a larger software package but
no copy
of one or more of the Font Software typefaces may be sold by itself.
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 BITSTREAM OR THE GNOME
FOUNDATION
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.
Except as contained in this notice, the names of GNOME, the GNOME
Foundation,
and Bitstream Inc., shall not be used in advertising or otherwise to promote
the sale, use or other dealings in this Font Software without prior written
authorization from the GNOME Foundation or Bitstream Inc., respectively.
For further information, contact: fonts at gnome dot org.
AMSFonts (v. 2.2) copyright
The PostScript Type 1 implementation of the AMSFonts produced by and
previously distributed by Blue Sky Research and Y&Y, Inc. are now freely
available for general use. This has been accomplished through the
cooperation
of a consortium of scientific publishers with Blue Sky Research and Y&Y.
Members of this consortium include:
Elsevier Science IBM Corporation Society for Industrial and Applied
Mathematics (SIAM) Springer-Verlag American Mathematical Society (AMS)
In order to assure the authenticity of these fonts, copyright will be
held by
the American Mathematical Society. This is not meant to restrict in any way
the legitimate use of the fonts, such as (but not limited to) electronic
distribution of documents containing these fonts, inclusion of these fonts
into other public domain or commercial font collections or computer
applications, use of the outline data to create derivative fonts and/or
faces, etc. However, the AMS does require that the AMS copyright notice be
removed from any derivative versions of the fonts which have been altered in
any way. In addition, to ensure the fidelity of TeX documents using Computer
Modern fonts, Professor Donald Knuth, creator of the Computer Modern faces,
has requested that any alterations which yield different font metrics be
given a different name.
$Id$

310
Makefile Normal file
View File

@ -0,0 +1,310 @@
.PHONY: all check munge full sans lgc ttf full-ttf sans-ttf lgc-ttf status dist src-dist full-dist sans-dist lgc-dist norm check-harder pre-patch clean
# Release version
VERSION = 2.37
# Snapshot version
SNAPSHOT =
# Initial source directory, assumed read-only
SRCDIR = src
# Directory where temporary files live
TMPDIR = tmp
# Directory where final files are created
BUILDDIR = build
# Directory where final archives are created
DISTDIR = dist
# Release layout
FONTCONFDIR = fontconfig
DOCDIR = .
SCRIPTSDIR = scripts
TTFDIR = ttf
RESOURCEDIR = resources
ifeq "$(SNAPSHOT)" ""
ARCHIVEVER = $(VERSION)
else
ARCHIVEVER = $(VERSION)-$(SNAPSHOT)
endif
SRCARCHIVE = dejavu-fonts-$(ARCHIVEVER)
FULLARCHIVE = dejavu-fonts-ttf-$(ARCHIVEVER)
SANSARCHIVE = dejavu-sans-ttf-$(ARCHIVEVER)
LGCARCHIVE = dejavu-lgc-fonts-ttf-$(ARCHIVEVER)
ARCHIVEEXT = .zip .tar.bz2
SUMEXT = .zip.md5 .tar.bz2.md5 .tar.bz2.sha512
OLDSTATUS = $(DOCDIR)/status.txt
BLOCKS = $(RESOURCEDIR)/Blocks.txt
UNICODEDATA = $(RESOURCEDIR)/UnicodeData.txt
FC-LANG = $(RESOURCEDIR)/fc-lang
GENERATE = $(SCRIPTSDIR)/generate.pe
TTPOSTPROC = $(SCRIPTSDIR)/ttpostproc.pl
LGC = $(SCRIPTSDIR)/lgc.pe
UNICOVER = $(SCRIPTSDIR)/unicover.pl
LANGCOVER = $(SCRIPTSDIR)/langcover.pl
STATUS = $(SCRIPTSDIR)/status.pl
PROBLEMS = $(SCRIPTSDIR)/problems.pl
NORMALIZE = $(SCRIPTSDIR)/sfdnormalize.pl
NARROW = $(SCRIPTSDIR)/narrow.pe
SRC := $(wildcard $(SRCDIR)/*.sfd)
SFDFILES := $(patsubst $(SRCDIR)/%, %, $(SRC))
FULLSFD := $(patsubst $(SRCDIR)/%.sfd, $(TMPDIR)/%.sfd, $(SRC))
NORMSFD := $(patsubst %, %.norm, $(FULLSFD))
MATSHSFD := $(wildcard $(SRCDIR)/*Math*.sfd)
LGCSRC := $(filter-out $(MATSHSFD),$(SRC))
LGCSFD := $(patsubst $(SRCDIR)/DejaVu%.sfd, $(TMPDIR)/DejaVuLGC%.sfd, $(LGCSRC))
FULLTTF := $(patsubst $(TMPDIR)/%.sfd, $(BUILDDIR)/%.ttf, $(FULLSFD))
LGCTTF := $(patsubst $(TMPDIR)/%.sfd, $(BUILDDIR)/%.ttf, $(LGCSFD))
FONTCONF := $(wildcard $(FONTCONFDIR)/*.conf)
FONTCONFLGC := $(wildcard $(FONTCONFDIR)/*lgc*.conf)
FONTCONFFULL := $(filter-out $(FONTCONFLGC), $(FONTCONF))
STATICDOC := $(addprefix $(DOCDIR)/, AUTHORS BUGS LICENSE NEWS README.md)
STATICSRCDOC := $(addprefix $(DOCDIR)/, BUILDING)
GENDOCFULL = unicover.txt langcover.txt status.txt
GENDOCSANS = unicover-sans.txt langcover-sans.txt
GENDOCLGC = unicover-lgc.txt langcover-lgc.txt
all : full sans lgc
$(TMPDIR)/%.sfd: $(SRCDIR)/%.sfd
@echo "[1] $< => $@"
install -d $(dir $@)
sed "s@\(Version:\? \)\(0\.[0-9]\+\.[0-9]\+\|[1-9][0-9]*\.[0-9]\+\)@\1$(VERSION)@" $< > $@
touch -r $< $@
$(TMPDIR)/DejaVuLGCMathTeXGyre.sfd: $(TMPDIR)/DejaVuMathTeXGyre.sfd
@echo "[2] skipping $<"
$(TMPDIR)/DejaVuLGC%.sfd: $(TMPDIR)/DejaVu%.sfd
@echo "[2] $< => $@"
sed -e 's,FontName: DejaVu,FontName: DejaVuLGC,'\
-e 's,FullName: DejaVu,FullName: DejaVu LGC,'\
-e 's,FamilyName: DejaVu,FamilyName: DejaVu LGC,'\
-e 's,"DejaVu \(\(Sans\|Serif\)*\( Condensed\| Mono\)*\( Bold\)*\( Oblique\|Italic\)*\)","DejaVu LGC \1",g' < $< > $@
@echo "Stripping unwanted glyphs from $@"
$(LGC) $@
touch -r $< $@
$(BUILDDIR)/DejaVuLGCMathTeXGyre.ttf: $(TMPDIR)/DejaVuLGCMathTeXGyre.sfd
@echo "[3] skipping $<"
$(BUILDDIR)/%.ttf: $(TMPDIR)/%.sfd
@echo "[3] $< => $@"
install -d $(dir $@)
$(GENERATE) $<
mv $<.ttf $@
$(TTPOSTPROC) $@
$(RM) $@~
touch -r $< $@
$(BUILDDIR)/status.txt: $(FULLSFD)
@echo "[4] => $@"
install -d $(dir $@)
$(STATUS) $(VERSION) $(OLDSTATUS) $(FULLSFD) > $@
$(BUILDDIR)/unicover.txt: $(patsubst %, $(TMPDIR)/%.sfd, DejaVuSans DejaVuSerif DejaVuSansMono)
@echo "[5] => $@"
install -d $(dir $@)
$(UNICOVER) $(UNICODEDATA) $(BLOCKS) \
$(TMPDIR)/DejaVuSans.sfd "Sans" \
$(TMPDIR)/DejaVuSerif.sfd "Serif" \
$(TMPDIR)/DejaVuSansMono.sfd "Sans Mono" > $@
$(BUILDDIR)/unicover-sans.txt: $(TMPDIR)/DejaVuSans.sfd
@echo "[5] => $@"
install -d $(dir $@)
$(UNICOVER) $(UNICODEDATA) $(BLOCKS) \
$(TMPDIR)/DejaVuSans.sfd "Sans" > $@
$(BUILDDIR)/unicover-lgc.txt: $(patsubst %, $(TMPDIR)/%.sfd, DejaVuLGCSans DejaVuLGCSerif DejaVuLGCSansMono)
@echo "[5] => $@"
install -d $(dir $@)
$(UNICOVER) $(UNICODEDATA) $(BLOCKS) \
$(TMPDIR)/DejaVuLGCSans.sfd "Sans" \
$(TMPDIR)/DejaVuLGCSerif.sfd "Serif" \
$(TMPDIR)/DejaVuLGCSansMono.sfd "Sans Mono" > $@
$(BUILDDIR)/langcover.txt: $(patsubst %, $(TMPDIR)/%.sfd, DejaVuSans DejaVuSerif DejaVuSansMono)
@echo "[6] => $@"
install -d $(dir $@)
ifeq "$(FC-LANG)" ""
touch $@
else
$(LANGCOVER) $(FC-LANG) \
$(TMPDIR)/DejaVuSans.sfd "Sans" \
$(TMPDIR)/DejaVuSerif.sfd "Serif" \
$(TMPDIR)/DejaVuSansMono.sfd "Sans Mono" > $@
endif
$(BUILDDIR)/langcover-sans.txt: $(TMPDIR)/DejaVuSans.sfd
@echo "[6] => $@"
install -d $(dir $@)
ifeq "$(FC-LANG)" ""
touch $@
else
$(LANGCOVER) $(FC-LANG) \
$(TMPDIR)/DejaVuSans.sfd "Sans" > $@
endif
$(BUILDDIR)/langcover-lgc.txt: $(patsubst %, $(TMPDIR)/%.sfd, DejaVuLGCSans DejaVuLGCSerif DejaVuLGCSansMono)
@echo "[6] => $@"
install -d $(dir $@)
ifeq "$(FC-LANG)" ""
touch $@
else
$(LANGCOVER) $(FC-LANG) \
$(TMPDIR)/DejaVuLGCSans.sfd "Sans" \
$(TMPDIR)/DejaVuLGCSerif.sfd "Serif" \
$(TMPDIR)/DejaVuLGCSansMono.sfd "Sans Mono" > $@
endif
$(BUILDDIR)/Makefile: Makefile
@echo "[7] => $@"
install -d $(dir $@)
sed -e "s+^VERSION\([[:space:]]*\)=\(.*\)+VERSION = $(VERSION)+g"\
-e "s+^SNAPSHOT\([[:space:]]*\)=\(.*\)+SNAPSHOT = $(SNAPSHOT)+g" < $< > $@
touch -r $< $@
$(TMPDIR)/$(SRCARCHIVE): $(addprefix $(BUILDDIR)/, $(GENDOCFULL) Makefile) $(FULLSFD)
@echo "[8] => $@"
install -d -m 0755 $@/$(SCRIPTSDIR)
install -d -m 0755 $@/$(SRCDIR)
install -d -m 0755 $@/$(FONTCONFDIR)
install -d -m 0755 $@/$(DOCDIR)
install -p -m 0644 $(BUILDDIR)/Makefile $@
install -p -m 0755 $(GENERATE) $(TTPOSTPROC) $(LGC) $(NORMALIZE) \
$(UNICOVER) $(LANGCOVER) $(STATUS) $(PROBLEMS) \
$@/$(SCRIPTSDIR)
install -p -m 0644 $(FULLSFD) $@/$(SRCDIR)
install -p -m 0644 $(FONTCONF) $@/$(FONTCONFDIR)
install -p -m 0644 $(addprefix $(BUILDDIR)/, $(GENDOCFULL)) \
$(STATICDOC) $(STATICSRCDOC) $@/$(DOCDIR)
$(TMPDIR)/$(FULLARCHIVE): full
@echo "[8] => $@"
install -d -m 0755 $@/$(TTFDIR)
install -d -m 0755 $@/$(FONTCONFDIR)
install -d -m 0755 $@/$(DOCDIR)
install -p -m 0644 $(FULLTTF) $@/$(TTFDIR)
install -p -m 0644 $(FONTCONFFULL) $@/$(FONTCONFDIR)
install -p -m 0644 $(addprefix $(BUILDDIR)/, $(GENDOCFULL)) \
$(STATICDOC) $@/$(DOCDIR)
$(TMPDIR)/$(SANSARCHIVE): sans
@echo "[8] => $@"
install -d -m 0755 $@/$(TTFDIR)
install -d -m 0755 $@/$(DOCDIR)
install -p -m 0644 $(BUILDDIR)/DejaVuSans.ttf $@/$(TTFDIR)
install -p -m 0644 $(addprefix $(BUILDDIR)/, $(GENDOCSANS)) \
$(STATICDOC) $@/$(DOCDIR)
$(TMPDIR)/$(LGCARCHIVE): lgc
@echo "[8] => $@"
install -d -m 0755 $@/$(TTFDIR)
install -d -m 0755 $@/$(FONTCONFDIR)
install -d -m 0755 $@/$(DOCDIR)
install -p -m 0644 $(LGCTTF) $@/$(TTFDIR)
install -p -m 0644 $(FONTCONFLGC) $@/$(FONTCONFDIR)
install -p -m 0644 $(addprefix $(BUILDDIR)/, $(GENDOCLGC)) \
$(STATICDOC) $@/$(DOCDIR)
$(DISTDIR)/%.zip: $(TMPDIR)/%
@echo "[9] => $@"
install -d $(dir $@)
(cd $(TMPDIR); zip -rv $(abspath $@) $(notdir $<))
$(DISTDIR)/%.tar.bz2: $(TMPDIR)/%
@echo "[9] => $@"
install -d $(dir $@)
(cd $(TMPDIR); tar cjvf $(abspath $@) $(notdir $<))
%.md5: %
@echo "[10] => $@"
(cd $(dir $<); md5sum -b $(notdir $<) > $(abspath $@))
%.sha512: %
@echo "[10] => $@"
(cd $(dir $<); sha512sum -b $(notdir $<) > $(abspath $@))
%.sfd.norm: %.sfd
@echo "[11] $< => $@"
$(NORMALIZE) $<
touch -r $< $@
check : $(NORMSFD)
for sfd in $^ ; do \
echo "[12] Checking $$sfd" ;\
$(PROBLEMS) $$sfd ;\
done
munge: $(NORMSFD)
for sfd in $(SFDFILES) ; do \
echo "[13] $(TMPDIR)/$$sfd.norm => $(SRCDIR)/$$sfd" ;\
cp $(TMPDIR)/$$sfd.norm $(SRCDIR)/$$sfd ;\
done
full : $(FULLTTF) $(addprefix $(BUILDDIR)/, $(GENDOCFULL))
sans : $(addprefix $(BUILDDIR)/, DejaVuSans.ttf $(GENDOCSANS))
lgc : $(LGCTTF) $(addprefix $(BUILDDIR)/, $(GENDOCLGC))
ttf : full-ttf sans-ttf lgc-ttf
full-ttf : $(FULLTTF)
sans-ttf: $(BUILDDIR)/DejaVuSans.ttf
lgc-ttf : $(LGCTTF)
status : $(addprefix $(BUILDDIR)/, $(GENDOCFULL))
dist : src-dist full-dist sans-dist lgc-dist
src-dist : $(addprefix $(DISTDIR)/$(SRCARCHIVE), $(ARCHIVEEXT) $(SUMEXT))
full-dist : $(addprefix $(DISTDIR)/$(FULLARCHIVE), $(ARCHIVEEXT) $(SUMEXT))
sans-dist : $(addprefix $(DISTDIR)/$(SANSARCHIVE), $(ARCHIVEEXT) $(SUMEXT))
lgc-dist : $(addprefix $(DISTDIR)/$(LGCARCHIVE), $(ARCHIVEEXT) $(SUMEXT))
norm : $(NORMSFD)
check-harder : clean check
pre-patch : munge clean
clean :
$(RM) -r $(TMPDIR) $(BUILDDIR) $(DISTDIR)
condensed: $(NORMSFD)
$(NARROW) 90 $(TMPDIR)/DejaVuSans.sfd.norm
$(NARROW) 90 $(TMPDIR)/DejaVuSans-Bold.sfd.norm
$(NARROW) 90 $(TMPDIR)/DejaVuSans-Oblique.sfd.norm
$(NARROW) 90 $(TMPDIR)/DejaVuSans-BoldOblique.sfd.norm
$(NARROW) 90 $(TMPDIR)/DejaVuSerif.sfd.norm
$(NARROW) 90 $(TMPDIR)/DejaVuSerif-Bold.sfd.norm
$(NARROW) 90 $(TMPDIR)/DejaVuSerif-Italic.sfd.norm
$(NARROW) 90 $(TMPDIR)/DejaVuSerif-BoldItalic.sfd.norm
$(NORMALIZE) $(TMPDIR)/DejaVuSans.sfd.norm.narrow
$(NORMALIZE) $(TMPDIR)/DejaVuSans-Bold.sfd.norm.narrow
$(NORMALIZE) $(TMPDIR)/DejaVuSans-Oblique.sfd.norm.narrow
$(NORMALIZE) $(TMPDIR)/DejaVuSans-BoldOblique.sfd.norm.narrow
$(NORMALIZE) $(TMPDIR)/DejaVuSerif.sfd.norm.narrow
$(NORMALIZE) $(TMPDIR)/DejaVuSerif-Bold.sfd.norm.narrow
$(NORMALIZE) $(TMPDIR)/DejaVuSerif-Italic.sfd.norm.narrow
$(NORMALIZE) $(TMPDIR)/DejaVuSerif-BoldItalic.sfd.norm.narrow
cp $(TMPDIR)/DejaVuSans.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSansCondensed.sfd.norm
cp $(TMPDIR)/DejaVuSans-Bold.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSansCondensed-Bold.sfd.norm
cp $(TMPDIR)/DejaVuSans-Oblique.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSansCondensed-Oblique.sfd.norm
cp $(TMPDIR)/DejaVuSans-BoldOblique.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSansCondensed-BoldOblique.sfd.norm
cp $(TMPDIR)/DejaVuSerif.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSerifCondensed.sfd.norm
cp $(TMPDIR)/DejaVuSerif-Bold.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSerifCondensed-Bold.sfd.norm
cp $(TMPDIR)/DejaVuSerif-Italic.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSerifCondensed-Italic.sfd.norm
cp $(TMPDIR)/DejaVuSerif-BoldItalic.sfd.norm.narrow.norm $(TMPDIR)/DejaVuSerifCondensed-BoldItalic.sfd.norm

1455
NEWS Normal file

File diff suppressed because it is too large Load Diff

67
README.md Normal file
View File

@ -0,0 +1,67 @@
[![Build Status](https://travis-ci.org/dejavu-fonts/dejavu-fonts.svg)](https://travis-ci.org/dejavu-fonts/dejavu-fonts)
DejaVu fonts 2.37 (c)2004-2016 DejaVu fonts team
------------------------------------------------
The DejaVu fonts are a font family based on the Bitstream Vera Fonts
(http://gnome.org/fonts/). Its purpose is to provide a wider range of
characters (see status.txt for more information) while maintaining the
original look and feel.
DejaVu fonts are based on Bitstream Vera fonts version 1.10.
Available fonts (Sans = sans serif, Mono = monospaced):
DejaVu Sans Mono
DejaVu Sans Mono Bold
DejaVu Sans Mono Bold Oblique
DejaVu Sans Mono Oblique
DejaVu Sans
DejaVu Sans Bold
DejaVu Sans Bold Oblique
DejaVu Sans Oblique
DejaVu Sans ExtraLight (experimental)
DejaVu Serif
DejaVu Serif Bold
DejaVu Serif Bold Italic (experimental)
DejaVu Serif Italic (experimental)
DejaVu Sans Condensed (experimental)
DejaVu Sans Condensed Bold (experimental)
DejaVu Sans Condensed Bold Oblique (experimental)
DejaVu Sans Condensed Oblique (experimental)
DejaVu Serif Condensed (experimental)
DejaVu Serif Condensed Bold (experimental)
DejaVu Serif Condensed Bold Italic (experimental)
DejaVu Serif Condensed Italic (experimental)
DejaVu Math TeX Gyre
All fonts are also available as derivative called DejaVu LGC with support
only for Latin, Greek and Cyrillic scripts.
For license information see LICENSE. What's new is described in NEWS. Known
bugs are in BUGS. All authors are mentioned in AUTHORS.
Fonts are published in source form as SFD files (Spline Font Database from
FontForge - http://fontforge.sf.net/) and in compiled form as TTF files
(TrueType fonts).
For more information go to http://dejavu.sourceforge.net/.
Characters from Arev fonts, Copyright (c) 2006 by Tavmjong Bah:
---------------------------
U+01BA, U+01BF, U+01F7, U+021C-U+021D, U+0220, U+0222-U+0223,
U+02B9, U+02BA, U+02BD, U+02C2-U+02C5, U+02d4-U+02D5,
U+02D7, U+02EC-U+02EE, U+0346-U+034E, U+0360, U+0362,
U+03E2-03EF, U+0460-0463, U+0466-U+0486, U+0488-U+0489, U+04A8-U+04A9,
U+0500-U+050F, U+2055-205E, U+20B0, U+20B2-U+20B3, U+2102, U+210D, U+210F,
U+2111, U+2113, U+2115, U+2118-U+211A, U+211C-U+211D, U+2124, U+2135,
U+213C-U+2140, U+2295-U+2298, U+2308-U+230B, U+26A2-U+26B1, U+2701-U+2704,
U+2706-U+2709, U+270C-U+274B, U+2758-U+275A, U+2761-U+2775, U+2780-U+2794,
U+2798-U+27AF, U+27B1-U+27BE, U+FB05-U+FB06
DejaVu Math TeX Gyre
--------------------
TeX Gyre DJV Math by B. Jackowski, P. Strzelczyk and P. Pianowski
(on behalf of TeX users groups).
$Id$

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf
Disable hinting manually at smaller sizes (< 8ppem)
This is a copy of the Bistream Vera fonts fonts rule, as DejaVu is
derived from Vera.
The Bistream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table.
-->
<match target="font">
<test name="family">
<string>DejaVu LGC Sans Mono</string>
</test>
<test compare="less" name="pixelsize">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf
Disable hinting manually at smaller sizes (< 8ppem)
This is a copy of the Bistream Vera fonts fonts rule, as DejaVu is
derived from Vera.
The Bistream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table.
-->
<match target="font">
<test name="family">
<string>DejaVu LGC Sans</string>
</test>
<test compare="less" name="pixelsize">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf
Disable hinting manually at smaller sizes (< 8ppem)
This is a copy of the Bistream Vera fonts fonts rule, as DejaVu is
derived from Vera.
The Bistream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table.
-->
<match target="font">
<test name="family">
<string>DejaVu LGC Serif</string>
</test>
<test compare="less" name="pixelsize">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
Disable hinting manually at smaller sizes (< 8ppem)
This is a copy of the Bistream Vera fonts fonts rule, as DejaVu is
derived from Vera.
The Bistream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table.
-->
<match target="font">
<test name="family">
<string>DejaVu Sans Mono</string>
</test>
<test compare="less" name="pixelsize">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
Disable hinting manually at smaller sizes (< 8ppem)
This is a copy of the Bistream Vera fonts fonts rule, as DejaVu is
derived from Vera.
The Bistream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table.
-->
<match target="font">
<test name="family">
<string>DejaVu Sans</string>
</test>
<test compare="less" name="pixelsize">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
Disable hinting manually at smaller sizes (< 8ppem)
This is a copy of the Bistream Vera fonts fonts rule, as DejaVu is
derived from Vera.
The Bistream Vera fonts have GASP entries suggesting that hinting be
disabled below 8 ppem, but FreeType ignores those, preferring to use
the data found in the instructed hints. The initial Vera release
didn't include the right instructions in the 'prep' table.
-->
<match target="font">
<test name="family">
<string>DejaVu Serif</string>
</test>
<test compare="less" name="pixelsize">
<double>7.5</double>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/57-dejavu-sans-mono.conf
Define aliasing and other fontconfig settings for
DejaVu Sans Mono.
© 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<!-- Font substitution rules -->
<alias binding="same">
<family>Bepa Mono</family>
<accept>
<family>DejaVu Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Prima Sans Mono</family>
<accept>
<family>DejaVu Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Vera Sans Mono</family>
<accept>
<family>DejaVu Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>DejaVu LGC Sans Mono</family>
<accept>
<family>DejaVu Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Olwen Sans Mono</family>
<accept>
<family>DejaVu Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>SUSE Sans Mono</family>
<accept>
<family>DejaVu Sans Mono</family>
</accept>
</alias>
<!-- Generic name assignment -->
<alias>
<family>DejaVu Sans Mono</family>
<default>
<family>monospace</family>
</default>
</alias>
<!-- Generic name aliasing -->
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
</prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/57-dejavu-sans.conf
Define aliasing and other fontconfig settings for
DejaVu Sans.
© 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<!-- Font substitution rules -->
<alias binding="same">
<family>Arev Sans</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Bepa</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Prima Sans</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Vera Sans</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>DejaVu LGC Sans</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Hunky Sans</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Olwen Sans</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>SUSE Sans</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Verajja</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<!-- In case VerajjaPDA stops declaring itself as Verajja -->
<alias binding="same">
<family>VerajjaPDA</family>
<accept>
<family>DejaVu Sans</family>
</accept>
</alias>
<!-- Generic name assignment -->
<alias>
<family>DejaVu Sans</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Generic name aliasing -->
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
</prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/57-dejavu-serif.conf
Define aliasing and other fontconfig settings for
DejaVu Serif.
© 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<!-- Font substitution rules -->
<alias binding="same">
<family>Bitstream Prima Serif</family>
<accept>
<family>DejaVu Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Vera Serif</family>
<accept>
<family>DejaVu Serif</family>
</accept>
</alias>
<alias binding="same">
<family>DejaVu LGC Serif</family>
<accept>
<family>DejaVu Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Hunky Serif</family>
<accept>
<family>DejaVu Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Olwen Serif</family>
<accept>
<family>DejaVu Serif</family>
</accept>
</alias>
<alias binding="same">
<family>SUSE Serif</family>
<accept>
<family>DejaVu Serif</family>
</accept>
</alias>
<!-- In case Verajja Serif stops declaring itself as DejaVu Serif -->
<alias binding="same">
<family>Verajja Serif</family>
<accept>
<family>DejaVu Serif</family>
</accept>
</alias>
<!-- Generic name assignment -->
<alias>
<family>DejaVu Serif</family>
<default>
<family>serif</family>
</default>
</alias>
<!-- Generic name aliasing -->
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
</prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf
Define aliasing and other fontconfig settings for
DejaVu LGC Sans Mono.
© 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<!-- Font substitution rules -->
<alias binding="same">
<family>Bepa Mono</family>
<accept>
<family>DejaVu LGC Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Prima Sans Mono</family>
<accept>
<family>DejaVu LGC Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Vera Sans Mono</family>
<accept>
<family>DejaVu LGC Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>DejaVu Sans Mono</family>
<accept>
<family>DejaVu LGC Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Olwen Sans Mono</family>
<accept>
<family>DejaVu LGC Sans Mono</family>
</accept>
</alias>
<alias binding="same">
<family>SUSE Sans Mono</family>
<accept>
<family>DejaVu LGC Sans Mono</family>
</accept>
</alias>
<!-- Generic name assignment -->
<alias>
<family>DejaVu LGC Sans Mono</family>
<default>
<family>monospace</family>
</default>
</alias>
<!-- Generic name aliasing -->
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu LGC Sans Mono</family>
</prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/58-dejavu-lgc-sans.conf
Define aliasing and other fontconfig settings for
DejaVu LGC Sans.
© 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<!-- Font substitution rules -->
<alias binding="same">
<family>Arev Sans</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Bepa</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Prima Sans</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Vera Sans</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>DejaVu Sans</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Hunky Sans</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Olwen Sans</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>SUSE Sans</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<alias binding="same">
<family>Verajja</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<!-- In case VerajjaPDA stops declaring itself as Verajja -->
<alias binding="same">
<family>VerajjaPDA</family>
<accept>
<family>DejaVu LGC Sans</family>
</accept>
</alias>
<!-- Generic name assignment -->
<alias>
<family>DejaVu LGC Sans</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Generic name aliasing -->
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu LGC Sans</family>
</prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/58-dejavu-lgc-serif.conf
Define aliasing and other fontconfig settings for
DejaVu LGC Serif.
© 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<!-- Font substitution rules -->
<alias binding="same">
<family>Bitstream Prima Serif</family>
<accept>
<family>DejaVu LGC Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Bitstream Vera Serif</family>
<accept>
<family>DejaVu LGC Serif</family>
</accept>
</alias>
<alias binding="same">
<family>DejaVu Serif</family>
<accept>
<family>DejaVu LGC Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Hunky Serif</family>
<accept>
<family>DejaVu LGC Serif</family>
</accept>
</alias>
<alias binding="same">
<family>Olwen Serif</family>
<accept>
<family>DejaVu LGC Serif</family>
</accept>
</alias>
<alias binding="same">
<family>SUSE Serif</family>
<accept>
<family>DejaVu LGC Serif</family>
</accept>
</alias>
<!-- In case Verajja Serif stops declaring itself as DejaVu Serif -->
<alias binding="same">
<family>Verajja Serif</family>
<accept>
<family>DejaVu LGC Serif</family>
</accept>
</alias>
<!-- Generic name assignment -->
<alias>
<family>DejaVu LGC Serif</family>
<default>
<family>serif</family>
</default>
</alias>
<!-- Generic name aliasing -->
<alias>
<family>serif</family>
<prefer>
<family>DejaVu LGC Serif</family>
</prefer>
</alias>
</fontconfig>

250
langcover.txt Normal file
View File

@ -0,0 +1,250 @@
This is the language coverage file for DejaVu fonts
($Id$)
Sans Serif Sans Mono
aa Afar 100% (62/62) 100% (62/62) 100% (62/62)
ab Abkhazia 100% (90/90) 93% (84/90) 84% (76/90)
af Afrikaans 100% (69/69) 100% (69/69) 100% (69/69)
ak Akan 100% (73/73) 100% (73/73) 100% (73/73)
am Amharic (0/264) (0/264) (0/264)
an Aragonese 100% (66/66) 100% (66/66) 100% (66/66)
ar Arabic 100% (36/36) (0/36) 100% (36/36)
as Assamese (0/64) (0/64) (0/64)
ast Asturian/Bable/Leonese/Asturleonese 100% (70/70) 100% (70/70) 100% (70/70)
av Avaric 100% (67/67) 100% (67/67) 100% (67/67)
ay Aymara 100% (60/60) 100% (60/60) 100% (60/60)
az-az Azerbaijani in Azerbaijan 100% (66/66) 100% (66/66) 100% (66/66)
az-ir Azerbaijani in Iran 100% (40/40) (0/40) 100% (40/40)
ba Bashkir 100% (82/82) 100% (82/82) 97% (80/82)
be Byelorussian 100% (68/68) 100% (68/68) 100% (68/68)
ber-dz Berber in Algeria 100% (70/70) 100% (70/70) 100% (70/70)
ber-ma Berber in Morocco 100% (32/32) (0/32) (0/32)
bg Bulgarian 100% (60/60) 100% (60/60) 100% (60/60)
bh Bihari (Devanagari script) (0/68) (0/68) (0/68)
bho Bhojpuri (Devanagari script) (0/68) (0/68) (0/68)
bi Bislama 100% (58/58) 100% (58/58) 100% (58/58)
bin Edo or Bini 100% (78/78) 100% (78/78) 100% (78/78)
bm Bambara 100% (60/60) 100% (60/60) 100% (60/60)
bn Bengali (0/63) (0/63) (0/63)
bo Tibetan (0/95) (0/95) (0/95)
br Breton 100% (64/64) 100% (64/64) 100% (64/64)
brx Bodo (Devanagari script) (0/82) (0/82) (0/82)
bs Bosnian 100% (62/62) 100% (62/62) 100% (62/62)
bua Buriat (Buryat) 100% (70/70) 100% (70/70) 100% (70/70)
byn Blin/Bilin (0/255) (0/255) (0/255)
ca Catalan 100% (74/74) 100% (74/74) 100% (74/74)
ce Chechen 100% (67/67) 100% (67/67) 100% (67/67)
ch Chamorro 100% (58/58) 100% (58/58) 100% (58/58)
chm Mari (Lower Cheremis / Upper Cheremis) 100% (76/76) 100% (76/76) 100% (76/76)
chr Cherokee (0/85) (0/85) (0/85)
co Corsican 100% (84/84) 100% (84/84) 100% (84/84)
crh Crimean Tatar/Crimean Turkish 100% (68/68) 100% (68/68) 100% (68/68)
cs Czech 100% (82/82) 100% (82/82) 100% (82/82)
csb Kashubian 100% (74/74) 100% (74/74) 100% (74/74)
cu Old Church Slavonic 100% (103/103) 90% (93/103) 78% (81/103)
cv Chuvash 100% (74/74) 100% (74/74) 100% (74/74)
cy Welsh 100% (78/78) 100% (78/78) 100% (78/78)
da Danish 100% (70/70) 100% (70/70) 100% (70/70)
de German 100% (59/59) 100% (59/59) 100% (59/59)
doi Dogri (0/85) (0/85) (0/85)
dv Divehi/Dhivehi/Maldivian (0/49) (0/49) (0/49)
dz Dzongkha (0/95) (0/95) (0/95)
ee Ewe 100% (99/99) 100% (99/99) 100% (99/99)
el Greek 100% (69/69) 100% (69/69) 100% (69/69)
en English 100% (72/72) 100% (72/72) 100% (72/72)
eo Esperanto 100% (64/64) 100% (64/64) 100% (64/64)
es Spanish 100% (66/66) 100% (66/66) 100% (66/66)
et Estonian 100% (64/64) 100% (64/64) 100% (64/64)
eu Basque 100% (56/56) 100% (56/56) 100% (56/56)
fa Persian 100% (40/40) (0/40) 100% (40/40)
fat Fanti 100% (73/73) 100% (73/73) 100% (73/73)
ff Fulah (Fula) 100% (62/62) 100% (62/62) 100% (62/62)
fi Finnish 100% (62/62) 100% (62/62) 100% (62/62)
fil Filipino 100% (84/84) 100% (84/84) 100% (84/84)
fj Fijian 100% (52/52) 100% (52/52) 100% (52/52)
fo Faroese 100% (68/68) 100% (68/68) 100% (68/68)
fr French 100% (84/84) 100% (84/84) 100% (84/84)
fur Friulian 100% (66/66) 100% (66/66) 100% (66/66)
fy Frisian 100% (75/75) 100% (75/75) 100% (75/75)
ga Irish 100% (80/80) 100% (80/80) 100% (80/80)
gd Scots Gaelic 100% (70/70) 100% (70/70) 100% (70/70)
gez Ethiopic (Geez) (0/218) (0/218) (0/218)
gl Galician 100% (66/66) 100% (66/66) 100% (66/66)
gn Guarani 100% (70/70) 100% (70/70) 100% (70/70)
gu Gujarati (0/68) (0/68) (0/68)
gv Manx Gaelic 100% (54/54) 100% (54/54) 100% (54/54)
ha Hausa 100% (60/60) 100% (60/60) 100% (60/60)
haw Hawaiian 100% (63/63) 100% (63/63) 100% (63/63)
he Hebrew 100% (27/27) (0/27) (0/27)
hi Hindi (Devanagari script) (0/68) (0/68) (0/68)
hne Chhattisgarhi (0/68) (0/68) (0/68)
ho Hiri Motu 100% (52/52) 100% (52/52) 100% (52/52)
hr Croatian 100% (62/62) 100% (62/62) 100% (62/62)
hsb Upper Sorbian 100% (72/72) 100% (72/72) 100% (72/72)
ht Haitian/Haitian Creole 100% (56/56) 100% (56/56) 100% (56/56)
hu Hungarian 100% (70/70) 100% (70/70) 100% (70/70)
hy Armenian 100% (77/77) 100% (77/77) 100% (77/77)
hz Herero 100% (57/57) 100% (57/57) 100% (57/57)
ia Interlingua 100% (52/52) 100% (52/52) 100% (52/52)
id Indonesian 100% (54/54) 100% (54/54) 100% (54/54)
ie Interlingue 100% (52/52) 100% (52/52) 100% (52/52)
ig Igbo 100% (58/58) 100% (58/58) 100% (58/58)
ii Sichuan Yi/Nuosu (0/1165) (0/1165) (0/1165)
ik Inupiaq (Inupiak, Eskimo) 100% (68/68) 100% (68/68) 100% (68/68)
io Ido 100% (52/52) 100% (52/52) 100% (52/52)
is Icelandic 100% (70/70) 100% (70/70) 100% (70/70)
it Italian 100% (72/72) 100% (72/72) 100% (72/72)
iu Inuktitut 100% (161/161) (0/161) (0/161)
ja Japanese (0/2314) (0/2314) (0/2314)
jv Javanese 100% (56/56) 100% (56/56) 100% (56/56)
ka Georgian 100% (33/33) 100% (33/33) 100% (33/33)
kaa Kara-Kalpak (Karakalpak) 100% (78/78) 100% (78/78) 100% (78/78)
kab Kabyle 100% (70/70) 100% (70/70) 100% (70/70)
ki Kikuyu 100% (56/56) 100% (56/56) 100% (56/56)
kj Kuanyama/Kwanyama 100% (52/52) 100% (52/52) 100% (52/52)
kk Kazakh 100% (77/77) 100% (77/77) 100% (77/77)
kl Greenlandic 100% (81/81) 100% (81/81) 100% (81/81)
km Central Khmer (0/63) (0/63) (0/63)
kn Kannada (0/70) (0/70) (0/70)
ko Korean (0/2442) (0/2442) (0/2442)
kok Kokani (Devanagari script) (0/68) (0/68) (0/68)
kr Kanuri 100% (56/56) 100% (56/56) 100% (56/56)
ks Kashmiri 78% (26/33) (0/33) 69% (23/33)
ku-am Kurdish in Armenia 100% (64/64) 100% (64/64) 100% (64/64)
ku-iq Kurdish in Iraq 100% (32/32) (0/32) 87% (28/32)
ku-ir Kurdish in Iran 100% (32/32) (0/32) 87% (28/32)
ku-tr Kurdish in Turkey 100% (62/62) 100% (62/62) 100% (62/62)
kum Kumyk 100% (66/66) 100% (66/66) 100% (66/66)
kv Komi (Komi-Permyak/Komi-Siryan) 100% (70/70) 100% (70/70) 100% (70/70)
kw Cornish 100% (64/64) 100% (64/64) 100% (64/64)
kwm Kwambi 100% (52/52) 100% (52/52) 100% (52/52)
ky Kirgiz 100% (70/70) 100% (70/70) 100% (70/70)
la Latin 100% (68/68) 100% (68/68) 100% (68/68)
lah Lahnda 92% (25/27) (0/27) 85% (23/27)
lb Luxembourgish (Letzeburgesch) 100% (75/75) 100% (75/75) 100% (75/75)
lez Lezghian (Lezgian) 100% (67/67) 100% (67/67) 100% (67/67)
lg Ganda 100% (54/54) 100% (54/54) 100% (54/54)
li Limburgan/Limburger/Limburgish 100% (62/62) 100% (62/62) 100% (62/62)
ln Lingala 100% (81/81) 100% (81/81) 100% (81/81)
lo Lao 100% (55/55) (0/55) 83% (46/55)
lt Lithuanian 100% (70/70) 100% (70/70) 100% (70/70)
lv Latvian 100% (78/78) 100% (78/78) 100% (78/78)
mai Maithili (Devanagari script) (0/68) (0/68) (0/68)
mg Malagasy 100% (56/56) 100% (56/56) 100% (56/56)
mh Marshallese 100% (62/62) 100% (62/62) 100% (62/62)
mi Maori 100% (64/64) 100% (64/64) 100% (64/64)
mk Macedonian 100% (42/42) 100% (42/42) 100% (42/42)
ml Malayalam (0/68) (0/68) (0/68)
mn-cn Mongolian in China (0/130) (0/130) (0/130)
mn-mn Mongolian in Mongolia 100% (70/70) 100% (70/70) 100% (70/70)
mni Maniputi (0/78) (0/78) (0/78)
mo Moldavian 100% (128/128) 100% (128/128) 100% (128/128)
mr Marathi (Devanagari script) (0/68) (0/68) (0/68)
ms Malay 100% (52/52) 100% (52/52) 100% (52/52)
mt Maltese 100% (72/72) 100% (72/72) 100% (72/72)
my Burmese (Myanmar) (0/48) (0/48) (0/48)
na Nauru 100% (60/60) 100% (60/60) 100% (60/60)
nb Norwegian Bokmal 100% (70/70) 100% (70/70) 100% (70/70)
nds Low Saxon 100% (59/59) 100% (59/59) 100% (59/59)
ne Nepali (0/72) (0/72) (0/72)
ng Ndonga 100% (52/52) 100% (52/52) 100% (52/52)
nl Dutch 100% (82/82) 100% (82/82) 100% (82/82)
nn Norwegian Nynorsk 100% (76/76) 100% (76/76) 100% (76/76)
no Norwegian (Bokmal) 100% (70/70) 100% (70/70) 100% (70/70)
nqo N'Ko 91% (54/59) (0/59) (0/59)
nr Ndebele, South 100% (52/52) 100% (52/52) 100% (52/52)
nso Northern Sotho 100% (58/58) 100% (58/58) 100% (58/58)
nv Navajo/Navaho 100% (72/72) 100% (72/72) 100% (72/72)
ny Chichewa 100% (54/54) 100% (54/54) 100% (54/54)
oc Occitan 100% (70/70) 100% (70/70) 100% (70/70)
om Oromo or Galla 100% (52/52) 100% (52/52) 100% (52/52)
or Oriya (0/68) (0/68) (0/68)
os Ossetic 100% (66/66) 100% (66/66) 100% (66/66)
ota Ottoman Turkish 100% (37/37) (0/37) 97% (36/37)
pa Panjabi/Punjabi (0/63) (0/63) (0/63)
pa-pk Panjabi/Punjabi in Pakistan 92% (25/27) (0/27) 85% (23/27)
pap-an Papiamento in Netherlands Antilles 100% (72/72) 100% (72/72) 100% (72/72)
pap-aw Papiamento in Aruba 100% (54/54) 100% (54/54) 100% (54/54)
pes Western Farsi 100% (40/40) (0/40) 100% (40/40)
pl Polish 100% (70/70) 100% (70/70) 100% (70/70)
prs Dari/Eastern Farsi 100% (40/40) (0/40) 100% (40/40)
ps-af Pashto in Afghanistan 97% (48/49) (0/49) 77% (38/49)
ps-pk Pashto in Pakistan 95% (47/49) (0/49) 75% (37/49)
pt Portuguese 100% (82/82) 100% (82/82) 100% (82/82)
qu Quechua 100% (55/55) 100% (55/55) 100% (55/55)
quz Cusco Quechua 100% (55/55) 100% (55/55) 100% (55/55)
rm Rhaeto-Romance (Romansch) 100% (66/66) 100% (66/66) 100% (66/66)
rn Rundi 100% (52/52) 100% (52/52) 100% (52/52)
ro Romanian 100% (62/62) 100% (62/62) 100% (62/62)
ru Russian 100% (66/66) 100% (66/66) 100% (66/66)
rw Kinyarwanda 100% (52/52) 100% (52/52) 100% (52/52)
sa Sanskrit (Devanagari script) (0/68) (0/68) (0/68)
sah Yakut 100% (76/76) 100% (76/76) 100% (76/76)
sat Santali (Devanagari script) (0/70) (0/70) (0/70)
sc Sardinian 100% (62/62) 100% (62/62) 100% (62/62)
sco Scots 100% (56/56) 100% (56/56) 100% (56/56)
sd Sindhi 100% (54/54) (0/54) 79% (43/54)
se North Sami 100% (66/66) 100% (66/66) 100% (66/66)
sel Selkup (Ostyak-Samoyed) 100% (66/66) 100% (66/66) 100% (66/66)
sg Sango 100% (72/72) 100% (72/72) 100% (72/72)
sh Serbo-Croatian 100% (156/156) 100% (156/156) 98% (154/156)
shs Secwepemctsin 100% (48/48) 100% (48/48) 100% (48/48)
si Sinhala/Sinhalese (0/73) (0/73) (0/73)
sid Sidamo (0/281) (0/281) (0/281)
sk Slovak 100% (86/86) 100% (86/86) 100% (86/86)
sl Slovenian 100% (62/62) 100% (62/62) 100% (62/62)
sm Samoan 100% (53/53) 100% (53/53) 100% (53/53)
sma South Sami 100% (60/60) 100% (60/60) 100% (60/60)
smj Lule Sami 100% (60/60) 100% (60/60) 100% (60/60)
smn Inari Sami 100% (68/68) 100% (68/68) 100% (68/68)
sms Skolt Sami 100% (80/80) 100% (80/80) 97% (78/80)
sn Shona 100% (52/52) 100% (52/52) 100% (52/52)
so Somali 100% (52/52) 100% (52/52) 100% (52/52)
sq Albanian 100% (56/56) 100% (56/56) 100% (56/56)
sr Serbian 100% (60/60) 100% (60/60) 100% (60/60)
ss Swati 100% (52/52) 100% (52/52) 100% (52/52)
st Sotho, Southern 100% (52/52) 100% (52/52) 100% (52/52)
su Sundanese 100% (54/54) 100% (54/54) 100% (54/54)
sv Swedish 100% (68/68) 100% (68/68) 100% (68/68)
sw Swahili 100% (52/52) 100% (52/52) 100% (52/52)
syr Syriac (0/45) (0/45) (0/45)
ta Tamil (0/48) (0/48) (0/48)
te Telugu (0/70) (0/70) (0/70)
tg Tajik 100% (78/78) 100% (78/78) 97% (76/78)
th Thai 1% (1/74) 1% (1/74) 1% (1/74)
ti-er Eritrean Tigrinya (0/255) (0/255) (0/255)
ti-et Ethiopian Tigrinya (0/281) (0/281) (0/281)
tig Tigre (0/221) (0/221) (0/221)
tk Turkmen 100% (68/68) 100% (68/68) 100% (68/68)
tl Tagalog 100% (84/84) 100% (84/84) 100% (84/84)
tn Tswana 100% (58/58) 100% (58/58) 100% (58/58)
to Tonga 100% (53/53) 100% (53/53) 100% (53/53)
tr Turkish 100% (70/70) 100% (70/70) 100% (70/70)
ts Tsonga 100% (52/52) 100% (52/52) 100% (52/52)
tt Tatar 100% (76/76) 100% (76/76) 100% (76/76)
tw Twi 100% (73/73) 100% (73/73) 100% (73/73)
ty Tahitian 100% (65/65) 100% (65/65) 100% (65/65)
tyv Tuvinian 100% (70/70) 100% (70/70) 100% (70/70)
ug Uyghur 100% (33/33) (0/33) 78% (26/33)
uk Ukrainian 100% (72/72) 100% (72/72) 100% (72/72)
ur Urdu 92% (25/27) (0/27) 85% (23/27)
uz Uzbek 100% (52/52) 100% (52/52) 100% (52/52)
ve Venda 100% (62/62) 100% (62/62) 100% (62/62)
vi Vietnamese 100% (194/194) 100% (194/194) 76% (148/194)
vo Volapuk 100% (54/54) 100% (54/54) 100% (54/54)
vot Votic 100% (62/62) 100% (62/62) 100% (62/62)
wa Walloon 100% (70/70) 100% (70/70) 100% (70/70)
wal Wolaitta/Wolaytta (0/281) (0/281) (0/281)
wen Sorbian languages (lower and upper) 100% (76/76) 100% (76/76) 100% (76/76)
wo Wolof 100% (66/66) 100% (66/66) 100% (66/66)
xh Xhosa 100% (52/52) 100% (52/52) 100% (52/52)
yap Yapese 100% (58/58) 100% (58/58) 100% (58/58)
yi Yiddish 100% (27/27) (0/27) (0/27)
yo Yoruba 100% (119/119) 100% (119/119) 100% (119/119)
za Zhuang/Chuang 100% (52/52) 100% (52/52) 100% (52/52)
zh-cn Chinese (simplified) 0% (2/6765) 0% (2/6765) 0% (2/6765)
zh-hk Chinese Hong Kong Supplementary Character Set (0/1083) (0/1083) (0/1083)
zh-mo Chinese in Macau (0/1083) (0/1083) (0/1083)
zh-sg Chinese in Singapore 0% (2/6765) 0% (2/6765) 0% (2/6765)
zh-tw Chinese (traditional) (0/13063) (0/13063) (0/13063)
zu Zulu 100% (52/52) 100% (52/52) 100% (52/52)

43
scripts/generate.pe Executable file
View File

@ -0,0 +1,43 @@
#!/usr/bin/env fontforge
# $Id$
# script file for FontForge for TTF generation
# usage:
# mkdir generated
# chmod +x generate.pe
# ./generate.pe *.sfd
# font generation flags:
# 8 => do not include TT instructions (for experimental typefaces)
# 0x20 => generate a 'PfEd' table and store glyph comments
# 0x40 => generate a 'PfEd' table and store glyph colors
# 0x800 => generate old fashioned kern tables.
# - this one is important because it generates correct kerning tables
def_gen_flags = 0x20 + 0x40 + 0x800
exp_gen_flags = def_gen_flags + 8
if ($version < "20080330")
Error("Your version of FontForge is too old - 20080330 or newer is required");
endif
# FoundryName is not used in TTF generation
SetPref("FoundryName", "DejaVu")
# first 4 characters of TTFFoundry are used for achVendId
SetPref("TTFFoundry", "DejaVu")
i = 1
while ( i < $argc )
Open($argv[i], 1)
gen_flags = def_gen_flags
# Serif Italic and Serif Bold Italic are experimental
if ((Strcasestr ($fontname, "Serif") > -1) && (Strcasestr ($fontname, "Italic") > -1))
gen_flags = exp_gen_flags
endif
if (Strcasestr ($fontname, "Condensed") > -1)
gen_flags = exp_gen_flags
endif
if (Strcasestr ($fontname, "ExtraLight") > -1)
gen_flags = exp_gen_flags
endif
Generate( $curfont + ".ttf", "", gen_flags)
Close()
i++
endloop

200
scripts/langcover.pl Executable file
View File

@ -0,0 +1,200 @@
#!/usr/bin/perl -w
# $Id$
# language coverage analyzator
# (c)2006 Stepan Roh (PUBLIC DOMAIN)
# usage: ./langcover.pl fc-lang_dir sfd_file1 label1 (sfd_file2 label2...)
# files from http://webcvs.freedesktop.org/fontconfig/fontconfig/fc-lang/ should be downloaded to fc-lang directory
use FileHandle;
sub parse_fc_lang_dir($);
sub parse_orth_file($;$);
sub parse_sfd_file($);
sub inc_coverage($$);
sub print_coverage();
# map (language code => ( 'name' => name, 'chars' => list of glyphs, 'coverage' => ( sfd_file => coverage ) )
%langs = ();
sub parse_fc_lang_dir($) {
my ($fc_lang_dir) = @_;
opendir(DIR, $fc_lang_dir) || die "Unable to open $fc_lang_dir : $!\n";
my @orth_files = map { "$fc_lang_dir/$_" } grep { /\.orth$/ } readdir(DIR);
closedir(DIR);
foreach $orth_file (@orth_files) {
parse_orth_file($orth_file);
}
}
# missing or UTF-8 lang names
%lang_names = (
'gn' => 'Guarani',
'ja' => 'Japanese',
'nb' => 'Norwegian Bokmal',
'no' => 'Norwegian (Bokmal)',
'se' => 'North Sami',
'sma' => 'South Sami',
'smj' => 'Lule Sami',
'smn' => 'Inari Sami',
'sms' => 'Skolt Sami',
'vo' => 'Volapuk',
'zh-tw' => 'Chinese (traditional)',
);
sub parse_orth_file($;$) {
my ($orth_file, $lang) = @_;
if (!defined $lang) {
($lang) = ($orth_file =~ m,/([^/]*)\.[^./]*$,);
$lang =~ tr/_/-/;
}
# XXX some names in orth files have different language codes
my $orth_lang = $lang;
$orth_lang = 'kw' if ($orth_lang eq 'ay');
$orth_lang = 'kw' if ($orth_lang eq 'fj');
$orth_lang = 'eth' if ($orth_lang eq 'gez');
$orth_lang = 'hi' if ($orth_lang eq 'pa');
$orth_lang = 'cu' if ($orth_lang eq 'sco');
$orth_lang = 'af' if ($orth_lang eq 'sm');
$orth_lang = 'smj' if ($orth_lang eq 'sms');
$orth_lang = 'ge' if ($orth_lang eq 'te');
if (exists($lang_names{$lang})) {
$langs{$lang}{'name'} = $lang_names{$lang};
}
my $f = new FileHandle($orth_file) || die "Unable to open $orth_file : $!\n";
while (<$f>) {
if (!exists($langs{$lang}{'name'})) {
if (/^#\s*(.*?)\s*\($lang\)/i) {
$langs{$lang}{'name'} = $1;
next;
}
if (/^#\s*(.*?)\s*\($orth_lang\)/i) {
$langs{$lang}{'name'} = $1;
next;
}
}
next if (/^\s*(#|$)/);
if (/^\s*include\s+(\S+)/) {
my $include = $1;
my $include_file;
($include_file = $orth_file) =~ s,/[^/]+$,/$include,;
if ($include_file eq $orth_file) {
print "$orth_file creates an include loop";
}
else {
parse_orth_file($include_file, $lang);
}
next;
}
my ($start) = ($_ =~ /^\s*(\S+)/);
if ($lang eq 'ibo') {
# XXX ibo.orth 1ee1 -> 1ee4 (https://bugs.freedesktop.org/show_bug.cgi?id=6237)
$start = '1ee4' if ($start eq '1ee1');
}
my $end = $start;
if ($start =~ /-/) {
($start, $end) = split(/-/, $start);
}
# XXX ab.orth 0re1 -> 04e1 (https://bugs.freedesktop.org/show_bug.cgi?id=6238)
$end = '04e1' if ($end eq '0re1');
$start = hex ($start);
$end = hex ($end);
for (my $dec_enc = $start; $dec_enc <= $end; $dec_enc++) {
$langs{$lang}{'chars'}{$dec_enc} = 1;
}
}
$f->close();
}
sub inc_coverage($$) {
my ($sfd_file, $dec_enc) = @_;
foreach $lang (keys %langs) {
if (exists $langs{$lang}{'chars'}{$dec_enc}) {
$langs{$lang}{'coverage'}{$sfd_file}++;
}
}
}
sub parse_sfd_file($) {
my ($sfd_file) = @_;
open (F, $sfd_file) || die "Unable to open $sfd_file : $!\n";
my $curchar = '';
my $curenc = '';
my $empty = 0;
while (<F>) {
if (/^StartChar:\s*(\S+)\s*$/) {
$curchar = $1;
$curenc = '';
$empty = 0;
} elsif (/^Colour:/) {
# XXX this is quick'n'dirty hack to detect non-empty glyphs
$empty = 1;
} elsif (/^Encoding:\s*\d+\s*(\d+)\s*\d+\s*$/) {
$curenc = $1;
} elsif ($curenc && !$empty && /^EndChar\s*/) {
inc_coverage ($sfd_file, $curenc);
}
}
close (F);
}
# TODO: formats would be better
sub print_coverage() {
print <<END;
This is the language coverage file for DejaVu fonts
(\$Id\$)
END
print " ";
foreach $sfd_file (@sfd_files) {
my $label = $sfd_files{$sfd_file};
printf "%-19s", $label;
}
print "\n";
foreach $lang (sort keys %langs) {
my $name = $langs{$lang}{'name'};
my $length = keys %{$langs{$lang}{'chars'}};
printf "%-6s %-40s", $lang, $name;
foreach $sfd_file (@sfd_files) {
my ($coverage) = $langs{$lang}{'coverage'}{$sfd_file};
$coverage = 0 if (!defined $coverage);
my ($percent) = ($length != 0) ? ($coverage/$length * 100) : 0;
if ($percent > 0) {
printf " %3d%%", $percent;
} else {
print " ";
}
printf " %-13s", "($coverage/$length)";
}
print "\n";
}
}
if (@ARGV < 3) {
print STDERR "usage: fc-lang_dir sfd_file1 label1 (sfd_file2 label2...)\n";
exit 1;
}
$fc_lang_dir = shift @ARGV;
@sfd_files = ();
%sfd_files = ();
while (@ARGV) {
$sfd_file = shift @ARGV;
$label = shift @ARGV;
push (@sfd_files, $sfd_file);
$sfd_files{$sfd_file} = $label;
}
parse_fc_lang_dir($fc_lang_dir);
foreach $sfd_file (@sfd_files) {
parse_sfd_file($sfd_file);
}
print_coverage();
1;

26
scripts/lgc.pe Executable file
View File

@ -0,0 +1,26 @@
#!/usr/bin/env fontforge
# script to strip non-LGC glyphs out of the fonts
i = 1
while ( i < $argc )
Open($argv[i], 1)
Select(0u0530, 0u1cff) # Armenian through Vedic Extensions
SelectMore(0u2c00, 0u2c5f) # Glagolitic
SelectMore(0u2d00, 0u2ddf) # Georgian Supplement through Ethiopic Extended
SelectMore(0u2e80, 0ua63f) # CJK Radicals through Vai
SelectMore(0ua6a0, 0ua6ff) # Banum
SelectMore(0ua800, 0udfff) # Syloti Nagri through Hangul
SelectMore(0uf900, 0ufaff) # CJK Compatibility Ideographs
SelectMore(0ufb07, 0ufe1f) # Alphabetical Presentation Forms (partial) through Vertical Forms
SelectMore(0ufe30, 0uffef) # CJK Compatibility Forms through Halfwidth and Fullwidth Forms
SelectMore(0u10000, 0u1d37f) # Linear B Syllabary through Counting Rod Numerals
SelectMore(0u1ee00, 0u1f02f) # Arabic Mathematical Alphabetic Symbols through Mahjong Tiles
SelectMore(0u1f200, 0u1f2ff) # Enclosed Ideographic Supplement
SelectMore(0u20000, 0ueffff) # CJK Unified Ideographs Extention B and everything thereafter
Clear()
Save($argv[i])
i++
endloop

254
scripts/problems.pl Executable file
View File

@ -0,0 +1,254 @@
#!/usr/bin/perl -w
# $Id$
# possible problems finder
# (c)2004,2005 Stepan Roh (PUBLIC DOMAIN)
# usage: ./problems.pl [-l <0|1|2|3>] sfd_files+
# detected problems (higher levels contain lower levels):
# level 0:
# monospaced font (with Mono in name) without indication in Panose (and vice-versa)
# glyphs in monospaced face with different width
# not normalized file (looks for WinInfo, DisplaySize, HStem, VStem, Ref, KernsSLIF, different position than encoding,
# unordered glyphs or H or M flag)
# glyphs without width or with negative width
# duplicate glyphs
# combining marks with non-zero width in non-monospaced fonts
# missing point numbers in splines
# level 1 (default):
# colorized glyphs with content
# level 2:
# different set of mapped content glyphs (first SFD file specified on command line is taken as an etalon)
# level 3:
# ligature referencing colorized or missing glyphs
# ligature in colorized glyph (due to bug in FF <20050502 it causes problems on Mac OS X)
# ligature in empty glyph
sub process_sfd_file($$);
# glyph name => ( 'dec_enc' => dec_enc, 'hex_enc' => hex_enc )
%glyphs = ();
$glyphs_loaded = 0;
%problems_counter = ();
sub process_sfd_file($$) {
local ($sfd_file, $max_level) = @_;
sub problem($@) {
my ($level, $problem, @args) = @_;
if ($level <= $max_level) {
print $sfd_file, ': [', $level, '] ', $problem, ': ', @args, "\n";
$problems_counter{'['.$level.'] '.$problem}++;
}
}
sub is_combining($) {
my ($dec_enc) = @_;
return (($dec_enc >= 0x0300) && ($dec_enc <= 0x036F))
|| (($dec_enc >= 0x1DC0) && ($dec_enc <= 0x1DFF))
|| (($dec_enc >= 0x20D0) && ($dec_enc <= 0x20FF))
|| (($dec_enc >= 0xFE20) && ($dec_enc <= 0xFE2F));
}
my $curchar = '';
my $hex_enc = '';
my $dec_enc = 0;
my $colorized;
my $flags;
my ($fontname, $panose, $is_mono_name, $is_mono_panose) = ('', '', 0, 0);
my $is_mono = 0;
my $font_width = -1;
my $curwidth = 0;
my $has_ligature = 0;
my $is_empty = 1;
my %content_glyphs = ();
my @ligature_refs = ();
my %all_glyphs = ();
my $prev_enc = -1;
my $in_spline_set = 0;
my $has_splines;
my $has_refs;
my %all_names = ();
open (SFD, $sfd_file) || die "Unable to open $sfd_file : $!\n";
while (<SFD>) {
if (/^StartChar:\s*(\S+)\s*$/) {
$curchar = $1;
if (exists($all_names{$curchar})) {
problem (0, 'duplicate glyph name', $1);
}
$all_names{$curchar} = 1;
$hex_enc = '';
$dec_enc = 0;
$curwidth = -1;
undef $colorized;
undef $flags;
$has_ligature = 0;
@ligature_refs = ();
$is_empty = 1;
$in_spline_set = 0;
$has_splines = 0;
$has_refs = 0;
} elsif (/^Colour:\s*(\S+)\s*/) {
$colorized = $1;
} elsif (/^Flags:\s*(\S+)\s*/) {
$flags = $1;
if ($flags =~ /([MH])/) {
problem (0, 'not normalized: '.$1.' flag', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': flags=', $flags);
}
} elsif (/^Encoding:\s*(\d+)\s*((?:-|\d)+)\s*(\d+)\s*$/) {
$dec_enc = $1;
if ($2 > -1) {
$hex_enc = sprintf ('%04x', $2);
}
if ($dec_enc != $3) {
problem (0, 'not normalized: glyph position differs from encoding', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': position=', $3);
}
if ($dec_enc <= $prev_enc) {
problem (0, 'not normalized: unordered glyphs', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': previous=', $prev_enc);
}
$prev_enc = $dec_enc;
} elsif (/^Width:\s*(\S+)\s*/) {
$curwidth = $1;
} elsif (/^Ligature:\s*\S*\s*\S*\s*\S*\s*(.*?)\s*$/) {
@ligature_refs = split(/\s+/, $1);
$has_ligature = 1;
} elsif (/^SplineSet\s*$/) {
$is_empty = 0;
$in_spline_set = 1;
problem (0, 'mixed content', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : '')) if ($has_refs);
$has_splines = 1;
} elsif (/^EndSplineSet\s*$/) {
$in_spline_set = 0;
} elsif ($in_spline_set && !/.+,.+,.+$/) {
problem (0, 'point numbers missing', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
} elsif (/^Ref:/) {
$is_empty = 0;
problem (0, 'not normalized: old-style "Ref"', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
} elsif (/^Refer:\s*\d+\s*\d+\s*\S\s*(-?\d+(?:\.\d*)?(?:e-?\d+)?)\s*(-?\d+(?:\.\d*)?(?:e-?\d+)?)\s*(-?\d+(?:\.\d*)?(?:e-?\d+)?)\s*(-?\d+(?:\.\d*)?(?:e-?\d+)?)\s*-?\d+(?:\.\d*)?(?:e-?\d+)?\s*-?\d+(?:\.\d*)?(?:e-?\d+)?\s*(\d+)/) {
$is_empty = 0;
if (($5 & 0x2) != 0x2) {
problem (0, 'reference is not rounded to grid', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ' flags=', $5);
}
if (!(($1 == 1) && ($2 == 0) && ($3 == 0) && ($4 == 1))) {
problem (0, 'transformed reference', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
}
problem (0, 'mixed content', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : '')) if ($has_splines);
$has_refs = 1;
} elsif (/^DisplaySize:/) {
problem (0, 'not normalized: DisplaySize');
} elsif (/^WinInfo:/) {
problem (0, 'not normalized: WinInfo');
} elsif (/^HStem:/) {
problem (0, 'not normalized: HStem');
} elsif (/^VStem:/) {
problem (0, 'not normalized: VStem');
} elsif (/^KernsSLIF:/) {
problem (0, 'not normalized: KernsSLIF');
} elsif (/^EndChar\s*$/) {
if (!defined $colorized && !$is_empty) {
$content_glyphs{$curchar}{'dec_enc'} = $dec_enc;
$content_glyphs{$curchar}{'hex_enc'} = $hex_enc;
@{$content_glyphs{$curchar}{'ligature'}} = @ligature_refs;
# only mapped glyphs
if ($hex_enc) {
if ($glyphs_loaded) {
if (!exists $glyphs{$curchar}) {
problem (2, 'etalon-free glyph', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
}
} else {
$glyphs{$curchar}{'dec_enc'} = $dec_enc;
$glyphs{$curchar}{'hex_enc'} = $hex_enc;
}
}
}
if (defined $colorized && !$is_empty) {
problem (1, 'colorized content', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : '') , ': color=', $colorized);
}
if (defined $colorized && defined $flags && ($flags =~ /W/)) {
problem (1, 'colorized content', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : '') , ': color=', $colorized, ', flags=', $flags);
}
if (!$is_mono && defined $colorized && ($curwidth != 2048) && ($curwidth != 0)) {
problem (1, 'colorized content', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : '') , ': color=', $colorized, ', width=', $curwidth);
}
if ($curwidth == -1) {
problem (0, 'glyph w/o width', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
} elsif ($curwidth < 0) {
problem (0, 'negative width', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': width=', $curwidth);
} elsif ($is_mono && defined $flags && ($flags =~ /W/)) {
if ($font_width == -1) {
$font_width = $curwidth;
} elsif ($curwidth != $font_width) {
problem (0, 'incorrect width', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': font width=', $font_width, ', glyph width=', $curwidth);
}
} elsif (!$is_mono && is_combining($dec_enc) && ($curwidth != 0) && !$is_empty) {
problem (0, 'combining mark with non-zero width', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': width=', $curwidth);
}
if (defined $colorized && $has_ligature) {
problem (3, 'colorized ligature', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': color=', $colorized);
}
if ($is_empty && $has_ligature) {
problem (3, 'empty ligature', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
}
if (exists $all_glyphs{$dec_enc}) {
problem (0, 'duplicate', $curchar, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
}
$all_glyphs{$dec_enc} = 1;
} elsif (/^FontName:\s*(.*?)\s*$/) {
$fontname = $1;
$is_mono_name = ($fontname =~ /mono/i);
$is_mono = 1 if ($is_mono_name);
} elsif (/^Panose:\s*(.*?)\s*$/) {
$panose = $1;
$is_mono_panose = ((split(/\s+/, $panose))[3] == 9);
$is_mono = 1 if ($is_mono_panose);
}
}
close (SFD);
if ($is_mono_name != $is_mono_panose) {
problem (0, 'mixed monospace', 'font name=', $fontname, ', panose=', $panose);
}
foreach $glyph (sort { $content_glyphs{$a}{'dec_enc'} <=> $content_glyphs{$b}{'dec_enc'} } keys %content_glyphs) {
my $dec_enc = $content_glyphs{$glyph}{'dec_enc'};
my $hex_enc = $content_glyphs{$glyph}{'hex_enc'};
foreach $liga (@{$content_glyphs{$glyph}{'ligature'}}) {
if (!exists ($content_glyphs{$liga})) {
problem (3, 'ligature references colorized or missing glyph', $glyph, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''), ': ligature ref=', $liga);
}
}
}
if ($glyphs_loaded) {
foreach $glyph (sort { $glyphs{$a}{'dec_enc'} <=> $glyphs{$b}{'dec_enc'} } keys %glyphs) {
my $dec_enc = $glyphs{$glyph}{'dec_enc'};
my $hex_enc = $glyphs{$glyph}{'hex_enc'};
if (!exists $content_glyphs{$glyph}) {
problem (2, 'missing glyph', $glyph, ' ', $dec_enc, ($hex_enc ? ' U+'.$hex_enc : ''));
}
}
}
$glyphs_loaded = 1;
}
if (!@ARGV) {
print STDERR "usage: [-l <0|1|2|3>] sfd_files+\n";
exit 1;
}
$max_level = 1;
if ($ARGV[0] eq '-l') {
shift @ARGV;
$max_level = shift @ARGV;
}
@sfd_files = @ARGV;
foreach $sfd_file (@sfd_files) {
process_sfd_file ($sfd_file, $max_level);
}
foreach $problem (sort keys %problems_counter) {
print $problems_counter{$problem}, ' problems of type "', $problem, '"', "\n";
}
1;

167
scripts/sfdnormalize.pl Executable file
View File

@ -0,0 +1,167 @@
#!/usr/bin/perl -w
# $Id$
# SFD normalizer (discards GUI information from SFD files)
# (c)2004,2005 Stepan Roh (PUBLIC DOMAIN)
# usage: ./sfdnormalize.pl sfd_file(s)
# will create files with suffix .norm
# changes done:
# WinInfo - discarded
# DisplaySize
# - discarded
# Flags - discarded O (open), H (changed since last hinting - useless for TTF), M (manual hinting - useless for TTF)
# Refer - changed S (selected) to N (not selected)
# Fore, Back, SplineSet, Grid
# - all points have 4 masked out from flags (selected)
# and 256 (do not interpolate)
# HStem, VStem
# - discarded (those are Type1 stems = PS hints)
# recalculate number of characters and positional encoding
# NameList
# - discarded (temporary)
# ModificationTime - discarded
# CreationTime - discarded
# VWidth - discarded (for now)
# TeXData - discarded
# TeX - discarded
# Validated - discarded
# UndoRedoHistory - discarded
# changes making it incompatible with FF older than (approx.) 20050728:
# Ref - renamed to Refer
# KernsSLIF
# - renamed to KernsSLIFO
# !!! Always review changes done by this utility !!!
sub process_sfd_file($);
sub process_sfd_file($) {
my ($sfd_file) = @_;
my $out = $sfd_file . '.norm';
open (SFD, $sfd_file) || die "Unable to open $sfd_file : $!\n";
open (OUT, '>'.$out) || die "Unable to open $out : $!\n";
my $curchar = '';
my %glyphs = ();
my $in_spline_set = 0;
my $max_dec_enc = 0;
my %pos_glyphs_map = ();
my $in_undo_redo = 0;
while (<SFD>) {
next if (/^(WinInfo|DisplaySize|HStem|VStem|ModificationTime|CreationTime|VWidth|TeX|TeXData|Validated|AltUni2):/);
next if (/^$/);
s,^(NameList:).*$,$1 AGL without afii,;
s,^Ref:,Refer:,;
s,^KernsSLIF:,KernsSLIFO:,;
s,^(Flags:.*?)O(.*)$,$1$2,;
s,^(Flags:.*?)H(.*)$,$1$2,;
s,^(Flags:.*?)M(.*)$,$1$2,;
# remove empty Flags line
next if (/^Flags:\s*$/);
s,^(Refer:.*?)S(.*)$,$1N$2,;
if (/^(Fore|Back|SplineSet|Grid)\s*$/) {
$in_spline_set = 1;
} elsif (/^EndSplineSet\s*$/) {
$in_spline_set = 0;
} elsif ($in_spline_set) {
s/(\s+)(\S+?)(,\S+\s*)$/$1.($2 & ~4 & ~256).$3/e;
s/([\s^])-0(\s)/$1."0".$2/eg
}
#remove UndoRedoHistory block
if (/^UndoRedoHistory/) {
$in_undo_redo = 1; next
} elsif (/^EndUndoRedoHistory/) {
$in_undo_redo = 0; next
}
next if ($in_undo_redo);
if (/^BeginChars:/) {
$in_chars = 1;
} elsif (/^EndChars\s*$/) {
$in_chars = 0;
# adding of 1 to max_dec_enc is strange, but works
# second parameter is set to 0 to avoid merging conflicts (fontforge ignores anyway)
print OUT "BeginChars: ", $max_dec_enc + 1, " 0\n";
foreach $glyph (sort { $glyphs{$a}{'dec_enc'} <=> $glyphs{$b}{'dec_enc'} } keys %glyphs) {
print OUT "StartChar: ", $glyphs{$glyph}{'name'}, "\n";
my $dec_enc = $glyphs{$glyph}{'dec_enc'};
my $mapped_enc = $glyphs{$glyph}{'mapped_enc'};
print OUT "Encoding: ", $dec_enc, " ", $mapped_enc, " ", $dec_enc, "\n";
# recalculate references and kerning pairs
foreach $l (@{$glyphs{$glyph}{'lines'}}) {
$l =~ s/^(Refer:\s*)(\S+)/$1.(exists $pos_glyphs_map{$2} ? $pos_glyphs_map{$2} : (warn "Glyph $glyph ($dec_enc) has reference to unknown glyph position $2\n", $2))/e;
if ($l =~ /^KernsSLIFO:\s*(.*)$/) {
my @nums = split(/\s+/, $1);
if ((scalar (@nums) % 4) != 0) {
warn "Kerning definition in glyph $curchar ($dec_enc) is malformed and won't be remapped\n";
} else {
for (my $i = 0; $i < scalar (@nums); $i += 4) {
my $pos = $nums[$i];
if (exists $pos_glyphs_map{$pos}) {
$nums[$i] = $pos_glyphs_map{$pos};
} else {
warn "Glyph $glyph ($dec_enc) has kerning reference to unknown glyph position $pos\n";
}
}
}
$l = "KernsSLIFO: " . join(' ', @nums) . "\n";
}
print OUT $l;
}
print OUT "EndChar\n";
$pos++;
}
print OUT "EndChars\n";
} elsif (/^StartChar:\s*(\S+)\s*$/) {
my $name = $1;
$curchar = $name;
while (exists $glyphs{$curchar}) {
$curchar .= '#';
}
$glyphs{$curchar}{'name'} = $name;
} elsif (/^Encoding:\s*(\d+)\s*((?:-|\d)+)\s*(\d+)\s*$/) {
$dec_enc = $1;
$max_dec_enc = $dec_enc if ($dec_enc > $max_dec_enc);
$mapped_enc = $2;
$pos = $3;
$glyphs{$curchar}{'dec_enc'} = $dec_enc;
$glyphs{$curchar}{'mapped_enc'} = $mapped_enc;
$glyphs{$curchar}{'pos'} = $pos;
if (exists $pos_glyphs_map{$pos}) {
warn "Glyph $curchar ($dec_enc) has duplicate glyph position $pos - won't be remapped - possible output corruption!\n";
} else {
$pos_glyphs_map{$pos} = $dec_enc;
}
} elsif (/^EndChar\s*$/) {
$curchar = '';
} else {
if (!$in_chars) {
print OUT;
} elsif ($curchar eq '') {
warn "Malformed input file $sfd_file?";
} else {
push (@{$glyphs{$curchar}{'lines'}}, $_);
}
}
}
close (SFD);
close (OUT);
}
if (!@ARGV) {
print STDERR "usage: sfd_files+\n";
exit 1;
}
@sfd_files = @ARGV;
foreach $sfd_file (@sfd_files) {
process_sfd_file ($sfd_file);
}
1;

194
scripts/status.pl Executable file
View File

@ -0,0 +1,194 @@
#!/usr/bin/perl -w
# $Id$
# status.txt file generator
# (c)2004 Stepan Roh (PUBLIC DOMAIN)
# usage: ./status.pl version_tag status_file sfd_files+
# will print new status file on standard output
sub parse_status_file(\%$);
sub parse_sfd_file(\%$$);
sub print_status_file(\%);
sub parse_versions($);
sub format_versions(\%);
sub normalize_version($);
sub denormalize_version($);
sub detect_full_typefaces_support(@);
# internal parsed format:
# _ => ( header lines* )
# hexadecimal character encoding => ( 'name' => name, 'versions' => ( version => ( typefaces* ) ) )
$debug = 0;
$name_width = 20;
if ($debug) {
use Data::Dumper;
$Data::Dumper::Indent = 1;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Purity = 1;
}
%parsed_typefaces = ();
sub normalize_version($) {
my ($version) = @_;
if ($version eq 'original') {
$version = '0.0';
}
return join ('_', map { sprintf ("%02s", $_) } split (/\./, $version));
}
sub denormalize_version($) {
my ($version) = @_;
$version = join ('.', map { $_ + 0 } split (/_/, $version));
if ($version eq '0.0') {
$version = 'original';
}
return $version;
}
sub parse_versions($) {
my ($versions) = @_;
my %ret = ();
while ($versions =~ s,^\s*(\S+)\s*(?:\((.*?)\)|),,) {
my ($version, $typefaces) = ($1, $2);
$version = normalize_version($version);
if ($typefaces) {
my @typefaces = split (/\s*,\s*/, $typefaces);
$ret{$version} = \@typefaces;
} else {
$ret{$version} = [];
}
}
return %ret;
}
sub parse_status_file(\%$) {
my ($parsed_ref, $status_file) = @_;
open (STATUS, $status_file) || die "Unable to open $status_file : $!\n";
while (<STATUS>) {
if (/^U+/) {
my ($hex_enc, $name, $versions) = ($_ =~ /^U\+(\S+)\s+(\S+)\s+(.*?)\s*$/);
my %versions = parse_versions ($versions);
$$parsed_ref{$hex_enc}{'name'} = $name;
$$parsed_ref{$hex_enc}{'versions'} = \%versions;
} else {
push (@{$$parsed_ref{'_'}}, $_);
}
}
close (STATUS);
}
sub parse_sfd_file(\%$$) {
my ($parsed_ref, $version_tag, $sfd_file) = @_;
open (SFD, $sfd_file) || die "Unable to open $sfd_file : $!\n";
my $typeface = '';
my $curchar = '';
my $hex_enc = '';
my $empty = 0;
$version_tag = normalize_version($version_tag);
while (<SFD>) {
if (/^FullName:\s+\S+\s+(.*?)\s*$/) {
# DejaVu is not included in typeface
$typeface = $1;
$parsed_typefaces{$typeface} = 1;
} elsif (/^StartChar:\s*(\S+)\s*$/) {
$curchar = $1;
$hex_enc = '';
$empty = 0;
} elsif (/^Colour:/) {
# XXX this is quick'n'dirty hack to detect non-empty glyphs
$empty = 1;
} elsif (/^Encoding:\s*\d+\s*(\d+)\s*\d+\s*$/) {
$hex_enc = sprintf ('%04x', $1);
} elsif ($hex_enc && !$empty && /^EndChar\s*$/) {
$$parsed_ref{$hex_enc}{'name'} = $curchar;
push (@{$$parsed_ref{$hex_enc}{'versions'}{$version_tag}}, $typeface);
}
}
close (SFD);
}
sub detect_full_typefaces_support(@) {
my %typefaces = ();
foreach $typeface (@_) {
$typefaces{$typeface} = 1;
}
foreach $typeface (keys %parsed_typefaces) {
return 0 if (!exists $typefaces{$typeface});
}
return 1;
}
sub format_versions(\%) {
my ($versions_ref) = @_;
my @ret = ();
my %done_typefaces = ();
foreach $version (sort keys %{$versions_ref}) {
my ($str) = denormalize_version ($version);
my $do_last = 1;
if (@{$$versions_ref{$version}}) {
my @print_typefaces = ();
foreach $typeface (@{$$versions_ref{$version}}) {
if (!exists ($done_typefaces{$typeface})) {
$done_typefaces{$typeface} = 1;
push (@print_typefaces, $typeface);
}
}
next if (!@print_typefaces);
if (!detect_full_typefaces_support(@print_typefaces)) {
$str .= ' (' . join (', ', sort @print_typefaces) . ')';
$do_last = 0;
}
}
push (@ret, $str);
last if ($do_last);
}
return join (' ', @ret);
}
sub print_status_file(\%) {
my ($parsed_ref) = @_;
print @{$$parsed_ref{'_'}};
delete $$parsed_ref{'_'};
foreach $hex_enc (sort {hex($a) <=> hex($b)} keys %{$parsed_ref}) {
my ($versions) = format_versions (%{$$parsed_ref{$hex_enc}{'versions'}});
printf ('U+%s %-'.$name_width.'s %s'."\n", $hex_enc, $$parsed_ref{$hex_enc}{'name'}, $versions);
}
}
if (@ARGV < 3) {
print STDERR "usage: version_tag status_file sfd_files+\n";
exit 1;
}
$version_tag = shift @ARGV;
$status_file = shift @ARGV;
@sfd_files = @ARGV;
%parsed = ();
parse_status_file (%parsed, $status_file);
foreach $sfd_file (@sfd_files) {
parse_sfd_file (%parsed, $version_tag, $sfd_file);
}
if ($debug) {
print STDERR Data::Dumper->Dump([\%parsed], ['*parsed']);
print STDERR "Parsed typefaces: ", join (', ', @parsed_typefaces), "\n";
}
print_status_file (%parsed);
1;

46
scripts/ttpostproc.pl Executable file
View File

@ -0,0 +1,46 @@
#!/usr/bin/perl -w
# $Id$
# TTF postprocessing
# usage:
# chmod +x ttpostproc.pl
# ./ttpostproc.pl generated/*.ttf
use Font::TTF::Font;
sub postproc($) {
my ($file) = @_;
my $backup = $file.'~';
rename($file, $backup) || die "Unable to rename $f as $backup : $!\n";
$font = Font::TTF::Font->open($backup) || die "Unable to open font $backup : $!\n";
# head.flags:
# 1 => baseline for font at y=0
# 2 => left sidebearing point at x=0
# 4 => instructions may depend on point size
# 8 => force ppem to integer values for all internal scaler math
# 0x10 => instructions may alter advance width
$font->{'head'}->{'flags'} = 1 + 2 + 4 + 8 + 0x10;
# gasp table
# version = 0
# numRanges = 2
# range[0].rangeMaxPPEM = 8
# range[0].rangeGaspBehavior = 2 (GASP_DOGRAY)
# range[1].rangeMaxPPEM = 65535 (max.)
# range[1].rangeGaspBehavior = 3 (GASP_DOGRAY|GASP_GRIDFIT)
$gasp_data = pack('nnnnnn', 0, 2, 8, 2, 0xffff, 3);
$font->{'gasp'} = Font::TTF::Table->new(( 'dat' => $gasp_data ));
$font->out($file) || die "Unable to write to $file : $!\n";
$font->release();
}
@files = @ARGV;
foreach $f (@files) {
postproc($f);
}
1;

210
scripts/unicover.pl Executable file
View File

@ -0,0 +1,210 @@
#!/usr/bin/perl -w
# $Id$
# unicode coverage analyzator
# (c)2004,2005 Stepan Roh (PUBLIC DOMAIN)
# usage: ./unicover.pl unicode_data_file blocks_file sfd_file1 label1 (sfd_file2 label2...)
# unicode data file can be downloaded from http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
# blocks file can be downloaded from http://www.unicode.org/Public/UNIDATA/Blocks.txt
sub parse_blocks_file($);
sub parse_unicode_data_file($);
sub parse_sfd_file($);
sub inc_coverage($$);
sub print_coverage();
sub disable_char($);
$debug = 0;
if ($debug) {
use Data::Dumper;
$Data::Dumper::Indent = 1;
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Purity = 1;
}
# map (start dec => ( 'name' => block name, 'end' => end dec, 'coverage' => ( sfd_file => coverage ), 'disabled_count' => number of disabled glyphs )
%blocks = ();
%chars = ();
sub parse_blocks_file($) {
my ($blocks_file) = @_;
open (F, $blocks_file) || die "Unable to open $blocks_file : $!\n";
while (<F>) {
next if (/^\s*(#|$)/);
my ($start, $end, $name) = ($_ =~ /^(.*?)\.\.(.*?);\s*(.*?)\s*$/);
$start = hex ($start);
$end = hex ($end);
$blocks{$start}{'name'} = $name;
$blocks{$start}{'end'} = $end;
}
close (F);
}
sub disable_char($) {
my ($dec_enc) = @_;
foreach $block_start (keys %blocks) {
my ($block_end) = $blocks{$block_start}{'end'};
if (($dec_enc >= $block_start) && ($dec_enc <= $block_end)) {
$blocks{$block_start}{'disabled_count'}++;
last;
}
}
}
sub disable_char_range($$) {
my ($range_start, $range_end) = @_;
my $cur_enc = $range_start;
while ($cur_enc <= $range_end) {
my $cur_block_start = -1;
foreach $block_start (keys %blocks) {
my ($block_end) = $blocks{$block_start}{'end'};
if (($cur_enc >= $block_start) && ($cur_enc <= $block_end)) {
$cur_block_start = $block_start;
last;
}
}
return if ($cur_block_start == -1);
while (($cur_enc <= $range_end) && ($cur_enc <= $blocks{$cur_block_start}{'end'})) {
$blocks{$cur_block_start}{'disabled_count'}++;
$cur_enc++;
}
}
}
sub parse_unicode_data_file($) {
my ($ud_file) = @_;
open (F, $ud_file) || die "Unable to open $ud_file : $!\n";
my $prev_enc = -1;
while (<F>) {
next if (/^\s*(#|$)/);
my ($enc, $name) = split (/;/);
$enc = hex ($enc);
if ($prev_enc + 1 < $enc) {
disable_char_range ($prev_enc + 1, $enc - 1);
}
disable_char ($enc) if ($name =~ /^</);
$chars{$enc} = 1 if ($name !~ /^</);
$prev_enc = $enc;
}
# find last possible character
$last_enc = $prev_enc;
foreach $block_start (keys %blocks) {
my ($block_end) = $blocks{$block_start}{'end'};
$last_enc = $block_end if ($block_end > $last_enc);
}
if ($prev_enc + 1 <= $last_enc) {
disable_char_range ($prev_enc + 1, $last_enc);
}
close (F);
}
sub inc_coverage($$) {
my ($sfd_file, $dec_enc) = @_;
foreach $block_start (keys %blocks) {
my ($block_end) = $blocks{$block_start}{'end'};
if (($dec_enc >= $block_start) && ($dec_enc <= $block_end)) {
if (exists $chars{$dec_enc}) {
$blocks{$block_start}{'coverage'}{$sfd_file}++;
}
last;
}
}
}
sub parse_sfd_file($) {
my ($sfd_file) = @_;
open (F, $sfd_file) || die "Unable to open $sfd_file : $!\n";
my $curchar = '';
my $curenc = '';
my $empty = 0;
while (<F>) {
if (/^StartChar:\s*(\S+)\s*$/) {
$curchar = $1;
$curenc = '';
$empty = 0;
} elsif (/^Colour:/) {
# XXX this is quick'n'dirty hack to detect non-empty glyphs
$empty = 1;
} elsif (/^Encoding:\s*\d+\s*(\d+)\s*\d+\s*$/) {
$curenc = $1;
} elsif ($curenc && !$empty && /^EndChar\s*/) {
inc_coverage ($sfd_file, $curenc);
}
}
close (F);
}
# TODO: formats would be better
sub print_coverage() {
print <<END;
This is the Unicode coverage file for DejaVu fonts
(\$Id\$)
Control and similar characters are discounted from totals.
END
print " ";
foreach $sfd_file (@sfd_files) {
my $label = $sfd_files{$sfd_file};
printf "%-19s", $label;
}
print "\n";
foreach $block_start (sort { $a <=> $b } keys %blocks) {
my ($block_end) = $blocks{$block_start}{'end'};
my ($name) = $blocks{$block_start}{'name'};
my ($disabled) = $blocks{$block_start}{'disabled_count'};
$disabled = 0 if (!defined $disabled);
my ($length) = $block_end - $block_start + 1 - $disabled;
printf "U+%04x %-40s", $block_start, $name;
foreach $sfd_file (@sfd_files) {
my ($coverage) = $blocks{$block_start}{'coverage'}{$sfd_file};
$coverage = 0 if (!defined $coverage);
my ($percent) = ($length != 0) ? ($coverage/$length * 100) : 0;
if ($percent > 0) {
printf " %3d%%", $percent;
} else {
print " ";
}
printf " %-13s", "($coverage/$length)";
}
print "\n";
}
}
if (@ARGV < 3) {
print STDERR "usage: unicode_data_file blocks_file sfd_file1 label1 (sfd_file2 label2...)\n";
exit 1;
}
$unicode_data_file = shift @ARGV;
$blocks_file = shift @ARGV;
@sfd_files = ();
%sfd_files = ();
while (@ARGV) {
$sfd_file = shift @ARGV;
$label = shift @ARGV;
push (@sfd_files, $sfd_file);
$sfd_files{$sfd_file} = $label;
}
parse_blocks_file($blocks_file);
parse_unicode_data_file($unicode_data_file);
foreach $sfd_file (@sfd_files) {
parse_sfd_file($sfd_file);
}
print_coverage();
if ($debug) {
print STDERR Data::Dumper->Dump([\%blocks], ['*blocks']);
}
1;

142612
src/DejaVuMathTeXGyre.sfd Normal file

File diff suppressed because it is too large Load Diff

195395
src/DejaVuSans-Bold.sfd Normal file

File diff suppressed because one or more lines are too long

171925
src/DejaVuSans-BoldOblique.sfd Normal file

File diff suppressed because one or more lines are too long

41374
src/DejaVuSans-ExtraLight.sfd Normal file

File diff suppressed because one or more lines are too long

175394
src/DejaVuSans-Oblique.sfd Normal file

File diff suppressed because one or more lines are too long

234944
src/DejaVuSans.sfd Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

235002
src/DejaVuSansCondensed.sfd Normal file

File diff suppressed because one or more lines are too long

102582
src/DejaVuSansMono-Bold.sfd Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

82733
src/DejaVuSansMono-Oblique.sfd Normal file

File diff suppressed because it is too large Load Diff

105167
src/DejaVuSansMono.sfd Normal file

File diff suppressed because it is too large Load Diff

108261
src/DejaVuSerif-Bold.sfd Normal file

File diff suppressed because one or more lines are too long

96271
src/DejaVuSerif-BoldItalic.sfd Normal file

File diff suppressed because one or more lines are too long

97275
src/DejaVuSerif-Italic.sfd Normal file

File diff suppressed because one or more lines are too long

120522
src/DejaVuSerif.sfd Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

120614
src/DejaVuSerifCondensed.sfd Normal file

File diff suppressed because one or more lines are too long

7143
status.txt Normal file

File diff suppressed because it is too large Load Diff

279
unicover.txt Normal file
View File

@ -0,0 +1,279 @@
This is the Unicode coverage file for DejaVu fonts
($Id$)
Control and similar characters are discounted from totals.
Sans Serif Sans Mono
U+0000 Basic Latin 100% (95/95) 100% (95/95) 100% (95/95)
U+0080 Latin-1 Supplement 100% (96/96) 100% (96/96) 100% (96/96)
U+0100 Latin Extended-A 100% (128/128) 100% (128/128) 100% (128/128)
U+0180 Latin Extended-B 100% (208/208) 100% (208/208) 86% (180/208)
U+0250 IPA Extensions 100% (96/96) 100% (96/96) 100% (96/96)
U+02b0 Spacing Modifier Letters 78% (63/80) 73% (59/80) 62% (50/80)
U+0300 Combining Diacritical Marks 83% (93/112) 61% (69/112) 59% (67/112)
U+0370 Greek and Coptic 100% (135/135) 89% (121/135) 85% (116/135)
U+0400 Cyrillic 100% (256/256) 79% (204/256) 70% (180/256)
U+0500 Cyrillic Supplement 79% (38/48) 20% (10/48) 12% (6/48)
U+0530 Armenian 96% (86/89) 96% (86/89) 96% (86/89)
U+0590 Hebrew 62% (54/87) (0/87) (0/87)
U+0600 Arabic 64% (165/255) (0/255) 38% (99/255)
U+0700 Syriac (0/77) (0/77) (0/77)
U+0750 Arabic Supplement (0/48) (0/48) (0/48)
U+0780 Thaana (0/50) (0/50) (0/50)
U+07c0 NKo 91% (54/59) (0/59) (0/59)
U+0800 Samaritan (0/61) (0/61) (0/61)
U+0840 Mandaic (0/29) (0/29) (0/29)
U+08a0 Arabic Extended-A (0/73) (0/73) (0/73)
U+0900 Devanagari (0/128) (0/128) (0/128)
U+0980 Bengali (0/93) (0/93) (0/93)
U+0a00 Gurmukhi (0/79) (0/79) (0/79)
U+0a80 Gujarati (0/85) (0/85) (0/85)
U+0b00 Oriya (0/90) (0/90) (0/90)
U+0b80 Tamil (0/72) (0/72) (0/72)
U+0c00 Telugu (0/96) (0/96) (0/96)
U+0c80 Kannada (0/88) (0/88) (0/88)
U+0d00 Malayalam (0/114) (0/114) (0/114)
U+0d80 Sinhala (0/90) (0/90) (0/90)
U+0e00 Thai 1% (1/87) 1% (1/87) 1% (1/87)
U+0e80 Lao 97% (65/67) (0/67) 68% (46/67)
U+0f00 Tibetan (0/211) (0/211) (0/211)
U+1000 Myanmar (0/160) (0/160) (0/160)
U+10a0 Georgian 94% (83/88) 94% (83/88) 51% (45/88)
U+1100 Hangul Jamo (0/256) (0/256) (0/256)
U+1200 Ethiopic (0/358) (0/358) (0/358)
U+1380 Ethiopic Supplement (0/26) (0/26) (0/26)
U+13a0 Cherokee (0/92) (0/92) (0/92)
U+1400 Unified Canadian Aboriginal Syllabics 63% (404/640) (0/640) (0/640)
U+1680 Ogham 100% (29/29) (0/29) (0/29)
U+16a0 Runic (0/89) (0/89) (0/89)
U+1700 Tagalog (0/20) (0/20) (0/20)
U+1720 Hanunoo (0/23) (0/23) (0/23)
U+1740 Buhid (0/20) (0/20) (0/20)
U+1760 Tagbanwa (0/18) (0/18) (0/18)
U+1780 Khmer (0/114) (0/114) (0/114)
U+1800 Mongolian (0/156) (0/156) (0/156)
U+18b0 Unified Canadian Aboriginal Syllabics Extended (0/70) (0/70) (0/70)
U+1900 Limbu (0/68) (0/68) (0/68)
U+1950 Tai Le (0/35) (0/35) (0/35)
U+1980 New Tai Lue (0/83) (0/83) (0/83)
U+19e0 Khmer Symbols (0/32) (0/32) (0/32)
U+1a00 Buginese (0/30) (0/30) (0/30)
U+1a20 Tai Tham (0/127) (0/127) (0/127)
U+1ab0 Combining Diacritical Marks Extended (0/15) (0/15) (0/15)
U+1b00 Balinese (0/121) (0/121) (0/121)
U+1b80 Sundanese (0/64) (0/64) (0/64)
U+1bc0 Batak (0/56) (0/56) (0/56)
U+1c00 Lepcha (0/74) (0/74) (0/74)
U+1c50 Ol Chiki (0/48) (0/48) (0/48)
U+1c80 Cyrillic Extended-C (0/9) (0/9) (0/9)
U+1cc0 Sundanese Supplement (0/8) (0/8) (0/8)
U+1cd0 Vedic Extensions (0/41) (0/41) (0/41)
U+1d00 Phonetic Extensions 82% (106/128) 89% (115/128) 48% (62/128)
U+1d80 Phonetic Extensions Supplement 59% (38/64) 59% (38/64) 57% (37/64)
U+1dc0 Combining Diacritical Marks Supplement 10% (6/59) 10% (6/59) (0/59)
U+1e00 Latin Extended Additional 98% (252/256) 98% (252/256) 71% (182/256)
U+1f00 Greek Extended 100% (233/233) 100% (233/233) 100% (233/233)
U+2000 General Punctuation 96% (107/111) 78% (87/111) 48% (54/111)
U+2070 Superscripts and Subscripts 100% (42/42) 100% (42/42) 100% (42/42)
U+20a0 Currency Symbols 83% (26/31) 32% (10/31) 83% (26/31)
U+20d0 Combining Diacritical Marks for Symbols 21% (7/33) (0/33) (0/33)
U+2100 Letterlike Symbols 93% (75/80) 42% (34/80) 22% (18/80)
U+2150 Number Forms 91% (55/60) 91% (55/60) 26% (16/60)
U+2190 Arrows 100% (112/112) 100% (112/112) 100% (112/112)
U+2200 Mathematical Operators 100% (256/256) 39% (101/256) 69% (178/256)
U+2300 Miscellaneous Technical 25% (65/255) 14% (36/255) 53% (136/255)
U+2400 Control Pictures 5% (2/39) 2% (1/39) 2% (1/39)
U+2440 Optical Character Recognition (0/11) (0/11) (0/11)
U+2460 Enclosed Alphanumerics 6% (10/160) (0/160) (0/160)
U+2500 Box Drawing 100% (128/128) 100% (128/128) 100% (128/128)
U+2580 Block Elements 100% (32/32) 100% (32/32) 100% (32/32)
U+25a0 Geometric Shapes 100% (96/96) 100% (96/96) 100% (96/96)
U+2600 Miscellaneous Symbols 73% (189/256) 11% (30/256) 58% (149/256)
U+2700 Dingbats 90% (174/192) 0% (1/192) 75% (144/192)
U+27c0 Miscellaneous Mathematical Symbols-A 18% (9/48) 10% (5/48) 22% (11/48)
U+27f0 Supplemental Arrows-A 100% (16/16) 100% (16/16) 18% (3/16)
U+2800 Braille Patterns 100% (256/256) 100% (256/256) (0/256)
U+2900 Supplemental Arrows-B 4% (6/128) 100% (128/128) (0/128)
U+2980 Miscellaneous Mathematical Symbols-B 10% (13/128) 0% (1/128) 5% (7/128)
U+2a00 Supplemental Mathematical Operators 28% (74/256) 2% (6/256) 1% (4/256)
U+2b00 Miscellaneous Symbols and Arrows 16% (35/206) 13% (27/206) 8% (18/206)
U+2c00 Glagolitic (0/94) (0/94) (0/94)
U+2c60 Latin Extended-C 96% (31/32) 84% (27/32) 43% (14/32)
U+2c80 Coptic (0/123) (0/123) (0/123)
U+2d00 Georgian Supplement 95% (38/40) 95% (38/40) (0/40)
U+2d30 Tifinagh 93% (55/59) (0/59) (0/59)
U+2d80 Ethiopic Extended (0/79) (0/79) (0/79)
U+2de0 Cyrillic Extended-A (0/32) (0/32) (0/32)
U+2e00 Supplemental Punctuation 10% (7/69) 10% (7/69) 10% (7/69)
U+2e80 CJK Radicals Supplement (0/115) (0/115) (0/115)
U+2f00 Kangxi Radicals (0/214) (0/214) (0/214)
U+2ff0 Ideographic Description Characters (0/12) (0/12) (0/12)
U+3000 CJK Symbols and Punctuation (0/64) (0/64) (0/64)
U+3040 Hiragana (0/93) (0/93) (0/93)
U+30a0 Katakana (0/96) (0/96) (0/96)
U+3100 Bopomofo (0/41) (0/41) (0/41)
U+3130 Hangul Compatibility Jamo (0/94) (0/94) (0/94)
U+3190 Kanbun (0/16) (0/16) (0/16)
U+31a0 Bopomofo Extended (0/27) (0/27) (0/27)
U+31c0 CJK Strokes (0/36) (0/36) (0/36)
U+31f0 Katakana Phonetic Extensions (0/16) (0/16) (0/16)
U+3200 Enclosed CJK Letters and Months (0/254) (0/254) (0/254)
U+3300 CJK Compatibility (0/256) (0/256) (0/256)
U+3400 CJK Unified Ideographs Extension A (0/0) (0/0) (0/0)
U+4dc0 Yijing Hexagram Symbols 100% (64/64) (0/64) (0/64)
U+4e00 CJK Unified Ideographs (0/0) (0/0) (0/0)
U+a000 Yi Syllables (0/1165) (0/1165) (0/1165)
U+a490 Yi Radicals (0/55) (0/55) (0/55)
U+a4d0 Lisu 100% (48/48) (0/48) (0/48)
U+a500 Vai (0/300) (0/300) (0/300)
U+a640 Cyrillic Extended-B 34% (33/96) 12% (12/96) (0/96)
U+a6a0 Bamum (0/88) (0/88) (0/88)
U+a700 Modifier Tone Letters 62% (20/32) 62% (20/32) 62% (20/32)
U+a720 Latin Extended-D 48% (77/160) 37% (60/160) 10% (17/160)
U+a800 Syloti Nagri (0/44) (0/44) (0/44)
U+a830 Common Indic Number Forms (0/10) (0/10) (0/10)
U+a840 Phags-pa (0/56) (0/56) (0/56)
U+a880 Saurashtra (0/82) (0/82) (0/82)
U+a8e0 Devanagari Extended (0/30) (0/30) (0/30)
U+a900 Kayah Li (0/48) (0/48) (0/48)
U+a930 Rejang (0/37) (0/37) (0/37)
U+a960 Hangul Jamo Extended-A (0/29) (0/29) (0/29)
U+a980 Javanese (0/91) (0/91) (0/91)
U+a9e0 Myanmar Extended-B (0/31) (0/31) (0/31)
U+aa00 Cham (0/83) (0/83) (0/83)
U+aa60 Myanmar Extended-A (0/32) (0/32) (0/32)
U+aa80 Tai Viet (0/72) (0/72) (0/72)
U+aae0 Meetei Mayek Extensions (0/23) (0/23) (0/23)
U+ab00 Ethiopic Extended-A (0/32) (0/32) (0/32)
U+ab30 Latin Extended-E (0/54) (0/54) (0/54)
U+ab70 Cherokee Supplement (0/80) (0/80) (0/80)
U+abc0 Meetei Mayek (0/56) (0/56) (0/56)
U+ac00 Hangul Syllables (0/0) (0/0) (0/0)
U+d7b0 Hangul Jamo Extended-B (0/72) (0/72) (0/72)
U+d800 High Surrogates (0/0) (0/0) (0/0)
U+db80 High Private Use Surrogates (0/0) (0/0) (0/0)
U+dc00 Low Surrogates (0/0) (0/0) (0/0)
U+e000 Private Use Area (0/0) (0/0) (0/0)
U+f900 CJK Compatibility Ideographs (0/472) (0/472) (0/472)
U+fb00 Alphabetic Presentation Forms 100% (58/58) 12% (7/58) 3% (2/58)
U+fb50 Arabic Presentation Forms-A 17% (108/611) (0/611) 11% (72/611)
U+fe00 Variation Selectors 100% (16/16) 100% (16/16) (0/16)
U+fe10 Vertical Forms (0/10) (0/10) (0/10)
U+fe20 Combining Half Marks 25% (4/16) (0/16) (0/16)
U+fe30 CJK Compatibility Forms (0/32) (0/32) (0/32)
U+fe50 Small Form Variants (0/26) (0/26) (0/26)
U+fe70 Arabic Presentation Forms-B 100% (141/141) (0/141) 100% (141/141)
U+ff00 Halfwidth and Fullwidth Forms (0/225) (0/225) (0/225)
U+fff0 Specials 100% (5/5) 100% (5/5) 100% (5/5)
U+10000 Linear B Syllabary (0/88) (0/88) (0/88)
U+10080 Linear B Ideograms (0/123) (0/123) (0/123)
U+10100 Aegean Numbers (0/57) (0/57) (0/57)
U+10140 Ancient Greek Numbers (0/79) (0/79) (0/79)
U+10190 Ancient Symbols (0/13) (0/13) (0/13)
U+101d0 Phaistos Disc (0/46) (0/46) (0/46)
U+10280 Lycian (0/29) (0/29) (0/29)
U+102a0 Carian (0/49) (0/49) (0/49)
U+102e0 Coptic Epact Numbers (0/28) (0/28) (0/28)
U+10300 Old Italic 97% (35/36) (0/36) (0/36)
U+10330 Gothic (0/27) (0/27) (0/27)
U+10350 Old Permic (0/43) (0/43) (0/43)
U+10380 Ugaritic (0/31) (0/31) (0/31)
U+103a0 Old Persian (0/50) (0/50) (0/50)
U+10400 Deseret (0/80) (0/80) (0/80)
U+10450 Shavian (0/48) (0/48) (0/48)
U+10480 Osmanya (0/40) (0/40) (0/40)
U+104b0 Osage (0/72) (0/72) (0/72)
U+10500 Elbasan (0/40) (0/40) (0/40)
U+10530 Caucasian Albanian (0/53) (0/53) (0/53)
U+10600 Linear A (0/341) (0/341) (0/341)
U+10800 Cypriot Syllabary (0/55) (0/55) (0/55)
U+10840 Imperial Aramaic (0/31) (0/31) (0/31)
U+10860 Palmyrene (0/32) (0/32) (0/32)
U+10880 Nabataean (0/40) (0/40) (0/40)
U+108e0 Hatran (0/26) (0/26) (0/26)
U+10900 Phoenician (0/29) (0/29) (0/29)
U+10920 Lydian (0/27) (0/27) (0/27)
U+10980 Meroitic Hieroglyphs (0/32) (0/32) (0/32)
U+109a0 Meroitic Cursive (0/90) (0/90) (0/90)
U+10a00 Kharoshthi (0/65) (0/65) (0/65)
U+10a60 Old South Arabian (0/32) (0/32) (0/32)
U+10a80 Old North Arabian (0/32) (0/32) (0/32)
U+10ac0 Manichaean (0/51) (0/51) (0/51)
U+10b00 Avestan (0/61) (0/61) (0/61)
U+10b40 Inscriptional Parthian (0/30) (0/30) (0/30)
U+10b60 Inscriptional Pahlavi (0/27) (0/27) (0/27)
U+10b80 Psalter Pahlavi (0/29) (0/29) (0/29)
U+10c00 Old Turkic (0/73) (0/73) (0/73)
U+10c80 Old Hungarian (0/108) (0/108) (0/108)
U+10e60 Rumi Numeral Symbols (0/31) (0/31) (0/31)
U+11000 Brahmi (0/109) (0/109) (0/109)
U+11080 Kaithi (0/66) (0/66) (0/66)
U+110d0 Sora Sompeng (0/35) (0/35) (0/35)
U+11100 Chakma (0/67) (0/67) (0/67)
U+11150 Mahajani (0/39) (0/39) (0/39)
U+11180 Sharada (0/94) (0/94) (0/94)
U+111e0 Sinhala Archaic Numbers (0/20) (0/20) (0/20)
U+11200 Khojki (0/62) (0/62) (0/62)
U+11280 Multani (0/38) (0/38) (0/38)
U+112b0 Khudawadi (0/69) (0/69) (0/69)
U+11300 Grantha (0/85) (0/85) (0/85)
U+11400 Newa (0/92) (0/92) (0/92)
U+11480 Tirhuta (0/82) (0/82) (0/82)
U+11580 Siddham (0/92) (0/92) (0/92)
U+11600 Modi (0/79) (0/79) (0/79)
U+11660 Mongolian Supplement (0/13) (0/13) (0/13)
U+11680 Takri (0/66) (0/66) (0/66)
U+11700 Ahom (0/57) (0/57) (0/57)
U+118a0 Warang Citi (0/84) (0/84) (0/84)
U+11ac0 Pau Cin Hau (0/57) (0/57) (0/57)
U+11c00 Bhaiksuki (0/97) (0/97) (0/97)
U+11c70 Marchen (0/68) (0/68) (0/68)
U+12000 Cuneiform (0/922) (0/922) (0/922)
U+12400 Cuneiform Numbers and Punctuation (0/116) (0/116) (0/116)
U+12480 Early Dynastic Cuneiform (0/196) (0/196) (0/196)
U+13000 Egyptian Hieroglyphs (0/1071) (0/1071) (0/1071)
U+14400 Anatolian Hieroglyphs (0/583) (0/583) (0/583)
U+16800 Bamum Supplement (0/569) (0/569) (0/569)
U+16a40 Mro (0/43) (0/43) (0/43)
U+16ad0 Bassa Vah (0/36) (0/36) (0/36)
U+16b00 Pahawh Hmong (0/127) (0/127) (0/127)
U+16f00 Miao (0/133) (0/133) (0/133)
U+16fe0 Ideographic Symbols and Punctuation (0/1) (0/1) (0/1)
U+17000 Tangut (0/0) (0/0) (0/0)
U+18800 Tangut Components (0/755) (0/755) (0/755)
U+1b000 Kana Supplement (0/2) (0/2) (0/2)
U+1bc00 Duployan (0/143) (0/143) (0/143)
U+1bca0 Shorthand Format Controls (0/4) (0/4) (0/4)
U+1d000 Byzantine Musical Symbols (0/246) (0/246) (0/246)
U+1d100 Musical Symbols (0/231) (0/231) (0/231)
U+1d200 Ancient Greek Musical Notation (0/70) (0/70) (0/70)
U+1d300 Tai Xuan Jing Symbols 100% (87/87) (0/87) (0/87)
U+1d360 Counting Rod Numerals (0/18) (0/18) (0/18)
U+1d400 Mathematical Alphanumeric Symbols 11% (117/996) 10% (108/996) 6% (63/996)
U+1d800 Sutton SignWriting (0/672) (0/672) (0/672)
U+1e000 Glagolitic Supplement (0/38) (0/38) (0/38)
U+1e800 Mende Kikakui (0/213) (0/213) (0/213)
U+1e900 Adlam (0/87) (0/87) (0/87)
U+1ee00 Arabic Mathematical Alphabetic Symbols 51% (74/143) (0/143) (0/143)
U+1f000 Mahjong Tiles (0/44) (0/44) (0/44)
U+1f030 Domino Tiles 100% (100/100) (0/100) (0/100)
U+1f0a0 Playing Cards 71% (59/82) (0/82) (0/82)
U+1f100 Enclosed Alphanumeric Supplement (0/191) (0/191) (0/191)
U+1f200 Enclosed Ideographic Supplement (0/58) (0/58) (0/58)
U+1f300 Miscellaneous Symbols and Pictographs 1% (12/768) (0/768) (0/768)
U+1f600 Emoticons 80% (64/80) (0/80) (0/80)
U+1f650 Ornamental Dingbats (0/48) (0/48) (0/48)
U+1f680 Transport and Map Symbols (0/103) (0/103) (0/103)
U+1f700 Alchemical Symbols (0/116) (0/116) (0/116)
U+1f780 Geometric Shapes Extended (0/85) (0/85) (0/85)
U+1f800 Supplemental Arrows-C (0/148) (0/148) (0/148)
U+1f900 Supplemental Symbols and Pictographs (0/82) (0/82) (0/82)
U+20000 CJK Unified Ideographs Extension B (0/0) (0/0) (0/0)
U+2a700 CJK Unified Ideographs Extension C (0/0) (0/0) (0/0)
U+2b740 CJK Unified Ideographs Extension D (0/0) (0/0) (0/0)
U+2b820 CJK Unified Ideographs Extension E (0/0) (0/0) (0/0)
U+2f800 CJK Compatibility Ideographs Supplement (0/542) (0/542) (0/542)
U+e0000 Tags (0/98) (0/98) (0/98)
U+e0100 Variation Selectors Supplement (0/240) (0/240) (0/240)
U+f0000 Supplementary Private Use Area-A (0/0) (0/0) (0/0)
U+100000 Supplementary Private Use Area-B (0/0) (0/0) (0/0)