From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Feng Shu" Subject: Re: "font-wqy-microhei" installed but the font file can not be found by "fc-cache -f" Date: Fri, 22 Sep 2017 18:52:57 +0800 Message-ID: <87r2uz2eeu.fsf@163.com> References: <87lgl7wu01.fsf@163.com> <87k20rrups.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvLa3-0002nD-3C for guix-devel@gnu.org; Fri, 22 Sep 2017 06:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvLZy-000837-6t for guix-devel@gnu.org; Fri, 22 Sep 2017 06:53:11 -0400 Received: from m12-17.163.com ([220.181.12.17]:48942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvLZx-00082H-BD for guix-devel@gnu.org; Fri, 22 Sep 2017 06:53:06 -0400 In-Reply-To: <87k20rrups.fsf@gmail.com> (Alex Kost's message of "Fri, 22 Sep 2017 11:41:35 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Kost Cc: guix-devel , Feng Shu Alex Kost writes: > Feng Shu (2017-09-22 06:45 +0800) wrote: > >> ----------- >> 851d0m0xsz4v0hjw98rypisxn34rq012-font-wqy-microhei-0.2.0-beta: >> =E6=80=BB=E7=94=A8=E9=87=8F 864 >> dr-xr-xr-x 3 root root 4096 1=E6=9C=88 1 1970 . >> drwxrwxr-t 1726 root guixbuild 872448 9=E6=9C=88 22 06:35 .. >> dr-xr-xr-x 3 root root 4096 1=E6=9C=88 1 1970 share >> ---------- >> >> The font file path: >> -------- >> feng@tumashu:/gnu/store/851d0m0xsz4v0hjw98rypisxn34rq012-font-wqy-microh= ei-0.2.0-beta/share/fonts/wenquanyi >> $ ls >> wqy-microhei.ttc >> feng@tumashu:/gnu/store/851d0m0xsz4v0hjw98rypisxn34rq012-font-wqy-microh= ei-0.2.0-beta/share/fonts/wenquanyi $=20 >> >> Am I miss something? > > From your output it is not clear where you installed this font. In the > system or user profile? I install this package in system profile with the help of my guixsd config > > Also please show the output of "fc-cache -fv". 1. root ##################### feng@tumashu:~ $ sudo fc-cache -fv =E5=AF=86=E7=A0=81=EF=BC=9A /gnu/store/dxfc87p84pbvl83v84si2yd00ni6jvrp-gs-fonts-8.11/share/fonts: cach= ing, new cache contents: 0 fonts, 1 dirs /gnu/store/dxfc87p84pbvl83v84si2yd00ni6jvrp-gs-fonts-8.11/share/fonts/type1= : caching, new cache contents: 0 fonts, 1 dirs /gnu/store/dxfc87p84pbvl83v84si2yd00ni6jvrp-gs-fonts-8.11/share/fonts/type1= /ghostscript: caching, new cache contents: 35 fonts, 0 dirs /root/.guix-profile/share/fonts: skipping, no such directory /run/current-system/profile/share/fonts: caching, new cache contents: 0 fon= ts, 1 dirs /run/current-system/profile/share/fonts/truetype: caching, new cache conten= ts: 2 fonts, 0 dirs /root/.local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /var/cache/fontconfig: cleaning cache directory /var/cache/fontconfig: invalid cache file: 2c2ac4e7133327c86cfe0fdaea0f270e= -le32d4.cache-7 /root/.cache/fontconfig: not cleaning non-existent cache directory /root/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded feng@tumashu:~ $=20 ################## 2. Normal user: ######################### feng@tumashu:~ $ fc-cache -fv /gnu/store/dxfc87p84pbvl83v84si2yd00ni6jvrp-gs-fonts-8.11/share/fonts: cach= ing, new cache contents: 0 fonts, 1 dirs /gnu/store/dxfc87p84pbvl83v84si2yd00ni6jvrp-gs-fonts-8.11/share/fonts/type1= : caching, new cache contents: 0 fonts, 1 dirs /gnu/store/dxfc87p84pbvl83v84si2yd00ni6jvrp-gs-fonts-8.11/share/fonts/type1= /ghostscript: caching, new cache contents: 35 fonts, 0 dirs /home/feng/.guix-profile/share/fonts: skipping, no such directory /run/current-system/profile/share/fonts: caching, new cache contents: 0 fon= ts, 1 dirs /run/current-system/profile/share/fonts/truetype: caching, new cache conten= ts: 2 fonts, 0 dirs /home/feng/.local/share/fonts: skipping, no such directory /home/feng/.fonts: caching, new cache contents: 5 fonts, 12 dirs /home/feng/.fonts/Luxi-Mono: caching, new cache contents: 4 fonts, 0 dirs /home/feng/.fonts/MonospaceTypewriter: caching, new cache contents: 1 fonts= , 0 dirs /home/feng/.fonts/SourceHanSansSC: caching, new cache contents: 0 fonts, 2 = dirs /home/feng/.fonts/SourceHanSansSC/SourceHanSansSC: caching, new cache conte= nts: 7 fonts, 0 dirs /home/feng/.fonts/SourceHanSansSC/__MACOSX: caching, new cache contents: 0 = fonts, 1 dirs /home/feng/.fonts/SourceHanSansSC/__MACOSX/SourceHanSansSC: caching, new ca= che contents: 0 fonts, 0 dirs /home/feng/.fonts/Win7=E4=BB=BF=E5=AE=8B=E5=8F=8A=E6=A5=B7=E4=BD=93: cachin= g, new cache contents: 2 fonts, 0 dirs /home/feng/.fonts/courier: caching, new cache contents: 19 fonts, 0 dirs /home/feng/.fonts/my-like: caching, new cache contents: 13 fonts, 0 dirs /home/feng/.fonts/sabrina: caching, new cache contents: 1 fonts, 0 dirs /home/feng/.fonts/script mono: caching, new cache contents: 1 fonts, 4 dirs /home/feng/.fonts/script mono/scriptmonocondensed: caching, new cache conte= nts: 1 fonts, 0 dirs /home/feng/.fonts/script mono/scriptmonocondenseditalic: caching, new cache= contents: 1 fonts, 0 dirs /home/feng/.fonts/script mono/scriptmonoextended: caching, new cache conten= ts: 1 fonts, 0 dirs /home/feng/.fonts/script mono/scriptmonoextendeditalic: caching, new cache = contents: 1 fonts, 0 dirs /home/feng/.fonts/ubuntu-font-family-0.80: caching, new cache contents: 13 = fonts, 0 dirs /home/feng/.fonts/winfonts: caching, new cache contents: 22 fonts, 0 dirs /home/feng/.fonts/wps_symbol: caching, new cache contents: 10 fonts, 0 dirs /home/feng/.fonts/=E6=96=B9=E6=AD=A3=E5=85=B0=E4=BA=AD=E9=BB=91: caching, n= ew cache contents: 12 fonts, 0 dirs /var/cache/fontconfig: not cleaning unwritable cache directory /home/feng/.cache/fontconfig: cleaning cache directory /home/feng/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded ################################################ #+END_EXAMPLE --=20