Kaydet (Commit) 8fe23a2a authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Initial Commit

üst 97f82f4a

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
<INARY>
<Name>desktop</Name>
</INARY>
<INARY>
<Name>desktop.font</Name>
</INARY>
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import libtools
from inary.actionsapi import get
def setup():
# Do not rebuild docs
shelltools.export("HASDOCBOOK", "no")
libtools.libtoolize("-f")
autotools.autoreconf("-fi")
autotools.configure("--disable-static \
--disable-docs \
--with-cache-dir=/var/cache/fontconfig \
--with-default-fonts=/usr/share/fonts \
--with-add-fonts=/usr/local/share/fonts")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32": return
inarytools.insinto("/etc/fonts", "fonts.conf", "fonts.conf.new")
enabled_configs = ("10-sub-pixel-rgb.conf", "70-yes-bitmaps.conf")
disabled_configs = ("10-no-sub-pixel.conf",)
for cfg in enabled_configs:
inarytools.dosym("../conf.avail/%s" % cfg, "/etc/fonts/conf.d/%s" % cfg)
for cfg in disabled_configs:
inarytools.remove("/usr/share/fontconfig/conf.avail/%s" % cfg)
for i in ["fc-cat", "fc-list", "fc-match", "fc-cache"]:
inarytools.doman("%s/*.1" % i)
inarytools.doman("doc/*.3")
inarytools.dodoc("AUTHORS", "COPYING", "README", "doc/*.txt")
From 165f0f012f8d4bebb12d188c1c2a369d233d586e Mon Sep 17 00:00:00 2001
From: Christian Hesse <mail@eworm.de>
Date: Tue, 10 Jan 2017 10:01:54 +0100
Subject: [PATCH 1/1] fix test with freetype2 2.7.1
Upstream freetype2 applied a patch from openSuSE [0]:
[pcf] Enrich family name with foundry name and glyph width info.
3576487add2f0e9691e8c43f8b0cd8e61aebf14f
This prepends the foundry name plus a space to the family name. We needs
change the font name in expexted test output.
[0] http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3576487add2f0e9691e8c43f8b0cd8e61aebf14f
Signed-off-by: Christian Hesse <mail@eworm.de>
---
test/out.expected | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/out.expected b/test/out.expected
index 39634c5..f3a8856 100644
--- a/test/out.expected
+++ b/test/out.expected
@@ -1,8 +1,8 @@
-Fixed:pixelsize=16
-Fixed:pixelsize=6
+Misc Fixed:pixelsize=6
+Sony Fixed:pixelsize=16
=
-Fixed:pixelsize=16
-Fixed:pixelsize=6
+Misc Fixed:pixelsize=6
+Sony Fixed:pixelsize=16
=
-Fixed:pixelsize=16
-Fixed:pixelsize=6
+Misc Fixed:pixelsize=6
+Sony Fixed:pixelsize=16
--
2.11.0
\ No newline at end of file
diff -Nur fontconfig-2.6.0-old/conf.d/10-antialias.conf fontconfig-2.6.0/conf.d/10-antialias.conf
--- fontconfig-2.6.0-old/conf.d/10-antialias.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-antialias.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use the Antialiasing -->
+ <match target="font">
+ <edit name="antialias" mode="assign"><bool>true</bool></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting.conf fontconfig-2.6.0/conf.d/10-hinting.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Hinting -->
+ <match target="font">
+ <edit name="hinting" mode="assign"><bool>true</bool></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting-full.conf fontconfig-2.6.0/conf.d/10-hinting-full.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting-full.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting-full.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Full Hinting -->
+ <match target="font">
+ <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting-medium.conf fontconfig-2.6.0/conf.d/10-hinting-medium.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting-medium.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting-medium.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Medium Hinting -->
+ <match target="font">
+ <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit>
+ </match>
+</fontconfig>
diff -Nur fontconfig-2.6.0-old/conf.d/10-hinting-slight.conf fontconfig-2.6.0/conf.d/10-hinting-slight.conf
--- fontconfig-2.6.0-old/conf.d/10-hinting-slight.conf 1970-01-01 02:00:00.000000000 +0200
+++ fontconfig-2.6.0/conf.d/10-hinting-slight.conf 2008-09-22 11:09:45.000000000 +0300
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Use Slight Hinting -->
+ <match target="font">
+ <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
+ </match>
+</fontconfig>
Index: fontconfig-2.8.0/conf.d/30-urw-aliases.conf
===================================================================
--- fontconfig-2.8.0.orig/conf.d/30-urw-aliases.conf
+++ fontconfig-2.8.0/conf.d/30-urw-aliases.conf
@@ -5,6 +5,13 @@
URW provides metric and shape compatible fonts for some Adobe families.
Helvetica, Courier, and Times are handled in 30-metric-aliases.conf.
-->
+
+<!--
+ However, these fonts are quite ugly and do not render well on-screen,
+ so we avoid matching them if the application said `anymetrics'; in that
+ case, a more generic font with different metrics but better appearance
+ will be used.
+
<alias binding="same">
<family>Avant Garde</family>
<accept><family>URW Gothic L</family></accept>
@@ -29,6 +36,109 @@
<family>Zapf Dingbats</family>
<accept><family>Dingbats</family></accept>
</alias>
+ -->
+
+ <match target="pattern">
+ <test name="family">
+ <string>Avant Garde</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>URW Gothic L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Bookman</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>URW Bookman L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Courier</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Nimbus Mono L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Helvetica</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Nimbus Sans L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>New Century Schoolbook</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>Century Schoolbook L</string>
+ </edit>
+ </match>
+ <match target="pattern">
+ <test name="family">
+ <string>Palatino</string>
+ </test>
+ <test name="anymetrics" qual="all" compare="not_eq">
+ <bool>true</bool>
+ </test>
+ <edit name="family" mode="append">
+ <string>URW Palladio L</string>