Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # Enable bytecode-interpreter and the hinter in freetype by default in CentOS 7.7.1908
- # How to turn the bytecode-interpreter and the hinter found here:
- # http://lajosd.blogspot.com/2018/@ 10/subpixel-anti-aliasing-fonts-of-rhel75.html
- #
- sudo yum install yum-utils libX11-devel gcc rpm-build rpm-sign bzip2-devel libpng-devel -y
- mkdir ~/tools && cd ~/tools
- wget https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackageSource/freetype-2.8-14.el7.src.rpm freetype-2.8-14.el7.src.rpm
- rpm -ivv freetype-2.8-14.el7.src.rpm
- cd ~/rpmbuild/SPECS
- rpmbuild --sign -ba --with bytecode_interpreter --with subpixel_rendering freetype.spec
- # below to avoid "file /usr/lib64/libfreetype.so.6.10.0 from install of freetype-2.8-14.el7.x86_64 conflicts with file from package freetype-2.8-14.el7.x86_64"
- sudo rpm -e --nodeps freetype-2.8-14.el7.x86_64
- sudo rpm -Uh --replacepkgs ~/rpmbuild/RPMS/x86_64/freetype-2.8-14.el7.x86_64.rpm
- # Adding local.conf file to /etc/fonts
- cd /etc/fonts/ && sudo wget -O local.conf https://pastebin.com/raw/0HA3pjhe
- # Add two additional repositories and disable it
- sudo yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:aevseev/CentOS7/home:aevseev.repo
- sudo yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:ubn:charliecloud/CentOS_7/home:ubn:charliecloud.repo
- sudo yum-config-manager --disable home_aevseev
- sudo yum-config-manager --disable home_ubn_charliecloud
- # Install the necessary fonts
- sudo yum install google-roboto-fonts google-roboto-mono-fonts bitstream-vera* -y
- sudo yum --enablerepo=home:aevseev install ubuntu-fonts -y
- sudo yum --enablerepo=home:ubn:charliecloud install fontawesome-fonts -y
- #Download OTF SF Pro & Monaco fonts
- cd /usr/share/fonts
- wget -O - "https://www.dropbox.com/s/5nf6isrp44rzf3p/OTF.tar.gz" | tar xzf -
- #Create an index of X font files in a directory
- cd OTF && mkfontdir
- #Go to parent folder & update font cache
- cd .. && fc-cache -fv
Add Comment
Please, Sign In to add comment