hvconfig_pre()
{
- if [ -z "${HV_FONTS_PATH}" ]; then
- echo "Missing HV_FONTS_PATH environment variable"
- exit 1
- fi
-
CONFIGURE_OPTS="\
${CONFIGURE_OPTS} \
--localstatedir=/var \
hvbuild_post()
{
- mkdir -v -p ${HV_FONTS_PATH}/{TrueType,Type1}
- mkdir -v -p /etc/fonts
-
- if [ -f /etc/fonts/local.conf ]; then
- mv -v /etc/fonts/local.conf /etc/fonts/local.conf.old
- fi
-
- # Adding X and our local fonts directory to local configuration file
- cat > /etc/fonts/local.conf << "EOF"
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<!-- /etc/fonts/local.conf file for local customizations -->
-<fontconfig>
- <dir>_HV_FONTS_PATH_/TrueType</dir>
- <dir>_HV_FONTS_PATH_/Type1</dir>
-</fontconfig>
-EOF
-
- sed -i -e "s!_HV_FONTS_PATH_!${HV_FONTS_PATH}!g" /etc/fonts/local.conf
-
- # Updating cache database.
+ # Updating font information cache.
fc-cache -f
}
+++ /dev/null
-#!/bin/bash
-
-source ../functions/main
-
-X11_FONTS_DIR="/usr/share/fonts/X11"
-
-if ! grep -q "${X11_FONTS_DIR}" /etc/fonts/local.conf; then
- # Adding X fonts directory to local configuration file
- sed -i -e "s!\(</fontconfig>\)! <dir>${X11_FONTS_DIR}</dir>\n\1!" \
- /etc/fonts/local.conf
-fi
-
-# Updating cache database.
-fc-cache -f
-
-exit $?
sed -i -e "s!_VIDEO_CARD_DRIVER_!${XORG_VIDEO_DRIVER}!g" /etc/X11/xorg.conf
+# Updating font information cache.
+fc-cache -f
+
exit $?
install_xorg_modules ${XORG_APP}
ipkg_xorg ${XCURSOR_THEMES} "data"
install_xorg_modules ${XORG_FONT}
-######################rscr once "Configuring fonts" configure-fonts
ipkg ${XKEYBOARD_CONFIG} ${XORG_CONFIG} --with-xkb-rules-symlink=xorg
ipkg_xorg ${LUIT} "app"
ipkg ${PIXMAN}
decompress_package ${GHOSTSCRIPT_FONTS_OTHER} ${GS_FONTS_PATH} 1
chown -v -R root:root ${GS_FONTS_PATH}
- if ! grep -q "${GS_FONTS_PATH}" /etc/fonts/local.conf; then
- # Adding Ghostscript fonts directory to local configuration file
- sed -i -e "s!\(</fontconfig>\)! <dir>${GS_FONTS_PATH}</dir>\n\1!" \
- /etc/fonts/local.conf
- fi
-
- # Updating cache database.
+ # Updating font information cache.
fc-cache -f
unset GS_FONTS_PATH