ALT Linux Bugzilla
– Attachment 5758 Details for
Bug 28612
Умолчательная настройка fontconfig
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
TMP: initial fonts feature
0001-TMP-initial-fonts-feature.patch (text/plain), 2.14 KB, created by
Michael Shigorin
on 2013-03-01 15:55:27 MSK
(
hide
)
Description:
TMP: initial fonts feature
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2013-03-01 15:55:27 MSK
Size:
2.14 KB
patch
obsolete
>From 8efc233e97459668fd87ca8424f57f52bdb03358 Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >Date: Fri, 15 Feb 2013 20:13:05 +0300 >Subject: [PATCH 1/2] TMP: initial fonts feature > >--- > features.in/fonts/config.mk | 11 +++++ > .../fonts/stage2/image-scripts.d/50-fontconfig | 50 ++++++++++++++++++++++ > 2 files changed, 61 insertions(+) > create mode 100644 features.in/fonts/config.mk > create mode 100755 features.in/fonts/stage2/image-scripts.d/50-fontconfig > >diff --git a/features.in/fonts/config.mk b/features.in/fonts/config.mk >new file mode 100644 >index 0000000..bb11dbc >--- /dev/null >+++ b/features.in/fonts/config.mk >@@ -0,0 +1,11 @@ >+use/fonts: >+ @$(call add_feature) >+ @$(call xport,FONT_FEATURES_ENABLE) >+ @$(call xport,FONT_FEATURES_DISABLE) >+ >+# just stating that kernels and font habits are pretty individual >+use/fonts/zerg: use/fonts >+ @$(call set,FONT_FEATURES_ENABLE,antialias lcdfilter-default \ >+ hinting style-full sub-pixel-rgb) >+ @$(call set,FONT_FEATURES_DISABLE,no-antialias lcdfilter-none \ >+ unhinted no-sub-pixel) >diff --git a/features.in/fonts/stage2/image-scripts.d/50-fontconfig b/features.in/fonts/stage2/image-scripts.d/50-fontconfig >new file mode 100755 >index 0000000..e5d7003 >--- /dev/null >+++ b/features.in/fonts/stage2/image-scripts.d/50-fontconfig >@@ -0,0 +1,50 @@ >+#!/bin/sh -x >+ >+# DESCRIPTION >+# >+# Setup fontconfig >+ >+ >+# REQUIRES >+# >+# Nothing >+ >+NAME="50-fontconfig" >+ >+verbose() { >+ if [ -n "$GLOBAL_VERBOSE" ]; then >+ echo "HOOK: $NAME: $@" >+ fi >+} >+ >+verbose "has started" >+ >+DEST_DIR= >+CONF_DIR="/etc/fonts/conf.d" >+AVAIL_DIR="/etc/fonts/conf.avail" >+ >+list() { ls "$DEST_DIR$1"/??-"$2".conf 2>/dev/null; } >+ >+enable() { >+ for i in "$@"; do >+ if list "$CONF_DIR" "$i"; then >+ AVAIL="$(list "$AVAIL_DIR" "$i" | head -1)" >+ if [ -n "$AVAIL" ]; then >+ CONF_ADD="$(basename "$AVAIL")" >+ ln -s "$AVAIL_DIR/$CONF_ADD" \ >+ "$DEST_DIR$CONF_DIR/$CONF_ADD" >+ fi >+ fi >+ done >+} >+ >+disable() { >+ for i in "$@"; do >+ $(list "$CONF_DIR" "$i") | xargs -r rm -f -- >+ done >+} >+ >+disable $GLOBAL_FONT_FEATURES_DISABLE >+enable $GLOBAL_FONT_FEATURES_ENABLE >+ >+: >-- >1.8.1.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28612
: 5758 |
5759