File: fontconfig-config.config

package info (click to toggle)
fontconfig 2.13.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,592 kB
  • sloc: ansic: 30,881; sh: 5,358; makefile: 1,117; sed: 16
file content (94 lines) | stat: -rw-r--r-- 2,361 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#! /bin/sh

set -e

. /usr/share/debconf/confmodule

CONFDIR=/etc/fonts/conf.d

hinting_type="Native"

unhinted_2_3="10-debconf-unhinted.conf"
unhinted_2_4="10-unhinted.conf"
autohint_2_3="10-debconf-autohint.conf"
autohint_2_4="10-autohint.conf"

if [ -h $CONFDIR/$unhinted_2_4 -o -h $CONFDIR/$unhinted_2_3 ]; then
        hinting_type="None"
fi
if [ -h $CONFDIR/$autohint_2_4 -o -h $CONFDIR/$autohint_2_3 ]; then
        hinting_type="Autohinter"
fi

db_set fontconfig/hinting_type "$hinting_type"


hinting_style="hintslight"

hintnone="10-hinting-none.conf"
hintslight="10-hinting-slight.conf"
hintmedium="10-hinting-medium.conf"
hintfull="10-hinting-full.conf"

if [ -h $CONFDIR/$hintnone ]; then
    hinting_style="hintnone"
fi
if [ -h $CONFDIR/$hintslight ]; then
    hinting_style="hintslight"
fi
if [ -h $CONFDIR/$hintmedium ]; then
    hinting_style="hintmedium"
fi
if [ -h $CONFDIR/$hintfull ]; then
    hinting_style="hintfull"
fi

db_set fontconfig/hinting_style "$hinting_style"


subpixel_rendering="Automatic"

subpixel_2_3="20-debconf-sub-pixel.conf"
subpixel_2_4="10-sub-pixel-rgb.conf"
no_subpixel_2_3="20-debconf-no-sub-pixel.conf"
no_subpixel_2_4="10-no-sub-pixel.conf"

if [ -h $CONFDIR/$subpixel_2_4 -o -h $CONFDIR/$subpixel_2_3 ]; then
        subpixel_rendering="Always"
fi

if [ -h $CONFDIR/$no_subpixel_2_4 -o -h $CONFDIR/$no_subpixel_2_3 ]; then
        subpixel_rendering="Never"
fi

db_set fontconfig/subpixel_rendering "$subpixel_rendering"


enable_bitmaps="dunno"

yes_bitmaps_2_3="30-debconf-yes-bitmaps.conf"
yes_bitmaps_2_4="70-yes-bitmaps.conf"
no_bitmaps_2_3="30-debconf-no-bitmaps.conf"
no_bitmaps_2_4="70-no-bitmaps.conf"

if [ -h $CONFDIR/$yes_bitmaps_2_4 -o -h $CONFDIR/$yes_bitmaps_2_3 ]; then
        enable_bitmaps="true"
fi

if [ -h $CONFDIR/$no_bitmaps_2_4 -o -h $CONFDIR/$no_bitmaps_2_3 ]; then
        enable_bitmaps="false"
fi

# Versions prior to 2.6.0-2 are broken and leave us with no symbolic 
# link, so we have to re-ask the user his choice :(
if [ "$enable_bitmaps" = "dunno" ]; then
	db_fset fontconfig/enable_bitmaps seen false
	enable_bitmaps="false"
fi
db_set fontconfig/enable_bitmaps "$enable_bitmaps"

db_input low fontconfig/hinting_type || true
db_input low fontconfig/hinting_style || true
db_input low fontconfig/subpixel_rendering || true
db_input low fontconfig/enable_bitmaps || true
db_go