
Fuminobu TAKEYAMA wrote:
ln -sv /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf . ln -sv /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf .
Unfortunately, sub-pixel rendering of freetype2 from the official repository is disabled due to patents.
If you want to use sub-pixel rendering at your own risk, you need to rebuild it. How can I check the availability of sub-pixel rendering in libfreetype6 quickly?
Here is a quick guide to you:
1. First, check what is Helvetica on your system: $ fc-match Helvetica file :file=/path/to/your/helvetica.otf Thank you for your hints.
# fc-match Helvetica file :file=/usr/share/fonts/texlive-tex-gyre/texgyreheros-regular.otf # fc-match Helvetica texgyreheros-regular.otf: "TeX Gyre Heros" "Regular"
2. Then, find the best hinting configuration by $ ftview 16 /path/to/your/helvetica.otf
# ftview 16 /usr/share/fonts/texlive-tex-gyre/texgyreheros-regular.otf This is exactly the font, where letter "i" looks like "l" in my environment. I want to avoid this "TeX Gyre" fonts. First I tried to remove the font file /usr/share/fonts/texlive-tex-gyre/texgyreheros-regular.otf by removing its package (texlive-tex-gyre-fonts-2014.100.2.004svn18651-23.5.noarch). But this breaks my LaTeX installation: # zypper --quiet rm $(rpm -qf /usr/share/fonts/texlive-tex-gyre/texgyreheros-regular.otf) The following 4 packages are going to be REMOVED: dblatex texlive-collection-fontsrecommended texlive-tex-gyre texlive-tex-gyre-fonts 4 packages to remove. After the operation, 29.4 MiB will be freed. Continue? [y/n/? shows all options] (y): Later I tried to link the font name "Helvetica" to something else (e.g. "Bitstream Vera Sans"). This worked with the description here https://wiki.archlinux.org/index.php/font_configuration#Replace_or_set_defau... # cat /etc/fonts/local.conf <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/local.conf file for local customizations --> <fontconfig> <match target="pattern"> <test qual="any" name="family"><string>Helvetica</string></test> <edit name="family" mode="assign" binding="same"><string>Bitstream Vera Sans</string></edit> </match> </fontconfig> Helvetica is "Bitstream Vera Sans" now: # fc-match Helvetica file :file=/usr/share/fonts/truetype/Vera.ttf # fc-match Helvetica Vera.ttf: "Bitstream Vera Sans" "Roman"
3. Set the hinting configuration to your Helvetica The Arch's documentation will be helpful.
If you change hinting configuration for all the fonts on your system, you can use YaST > Fonts. Thanks. I will look at this later.
After all the font tests, I have the next problem. Libreoffice 5.1.0.3 (RPM packages from http://www.libreoffice.org/) crashes with an segmentation fault if I select the font chooser. Reverting /etc/fonts/local.conf and calling "fc-cache -fv" again did not help. "strace" shows this: [...] 27733 brk(0x4e58000) = 0x4e58000 27733 open("/usr/share/fonts/truetype/ahronbd.ttf", O_RDONLY) = 45 27733 fstat(45, {st_mode=S_IFREG|0644, st_size=61612, ...}) = 0 27733 mmap(NULL, 61612, PROT_READ, MAP_SHARED, 45, 0) = 0x7f049b3ff000 27733 close(45) = 0 27733 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8c} --- 27733 access("/opt/libreoffice5.1/program/../share/config/soffice.cfg/svx/ui/res/de-DE.zip", F_OK) = -1 ENOENT (No such file or directory) 27733 access("/opt/libreoffice5.1/program/../share/config/soffice.cfg/svx/ui/res/de-DE.zip", F_OK) = -1 ENOENT (No such file or directory) 27733 access("/opt/libreoffice5.1/program/../share/config/soffice.cfg/svx/ui/res/de.zip", F_OK) = 0 [...] Greetings, Björn -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org