Giter Site home page Giter Site logo

Comments (8)

mikespook avatar mikespook commented on August 15, 2024

我在 1310 下不会这样,你系统的字体安装完整了吗?

你可以在应该显示英文的空白区域选择一下文本,看看是不是能显示出来。如果能显示出来,那可能是字体的问题。如果不显示,那就要把 go.log 提供给我看一下了。

另外,编译好的版本下载后,显示有问题吗?

from learning-go-zh-cn.

zwjzxh520 avatar zwjzxh520 commented on August 15, 2024

是根据提供的那个shell安装的字体。
编译的时候经常会看到这个提示:

\textfont 0 is undefined (character c).

Missing character: There is no a in font nullfont! //这是遇到英文字符好像就会提示这个
go.log有4M,这里好像不能直接上传附件。要怎么才能给你看?

下载你们编译好的是可以正常浏览的。

from learning-go-zh-cn.

mikespook avatar mikespook commented on August 15, 2024

试试安装这些包:

for i in inkscape \
    gnumeric \
    ttf-droid \
    ttf-dejavu \
    ttf-sazanami-gothic \
    ttf-arphic-ukai \
    texlive-fonts-recommended \
    texlive-extra-utils \
    texlive-xetex \
    texlive-latex-extra \
    texlive-latex-recommended \
    latex-cjk-xcjk \
    ttf-wqy-microhei \
    git-core \
    make \
do 
    sudo apt-get install $i -y
done

from learning-go-zh-cn.

zwjzxh520 avatar zwjzxh520 commented on August 15, 2024

这是安装这些包时的输出。应该是全部安装好了吧。我已经安装了好几次了,编译时还是一样的问题

Reading package lists... Done
Building dependency tree
Reading state information... Done
inkscape is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnumeric is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
ttf-droid is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
ttf-dejavu is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
ttf-sazanami-gothic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
ttf-arphic-ukai is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-fonts-recommended is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-extra-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-xetex is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-latex-extra is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-latex-recommended is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
latex-cjk-xcjk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ttf-wqy-microhei
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,375 kB of archives.
After this operation, 5,271 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main ttf-wqy-microhei all 0.2.0-beta-1ubuntu1 [2,375 kB]
Fetched 2,375 kB in 16s (140 kB/s)
Selecting previously unselected package ttf-wqy-microhei.
(Reading database ... 119754 files and directories currently installed.)
Unpacking ttf-wqy-microhei (from .../ttf-wqy-microhei_0.2.0-beta-1ubuntu1_all.deb) ...
Processing triggers for fontconfig ...
Setting up ttf-wqy-microhei (0.2.0-beta-1ubuntu1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-core is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

from learning-go-zh-cn.

zwjzxh520 avatar zwjzxh520 commented on August 15, 2024

编译时经常遇到这种情况,需要我按一下回车键才能继续编译

kpathsea: Running mktextfm SourceCodePro-Bold/I
/usr/share/texmf/web2c/mktexnam: Could not map source abbreviation for I.
/usr/share/texmf/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input I
This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)

kpathsea: Running mktexmf I
! I can't find file `I'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input I

Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input I

Transcript written on mfput.log.
grep: I.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input I' failed to make I.tfm.
! Font @tempfontb=SourceCodePro-Bold/I at 10.0pt not loadable: Metric (TFM) fi
le or installed font not found.
\zf@make@font@shapes ...f@suffix " at \f@size pt
\edef @tempb {\fontname ...
l.60 ...ourceCodePro-Bold}]{SourceCodePro-Regular}

from learning-go-zh-cn.

mikespook avatar mikespook commented on August 15, 2024

检查下 ./fonts/SourceCodePro-Bold.ttf 这个文件是否存在或者权限是否正常。

另外,SourceCodePro-Bold 的定义在 go-setup.tex 中,看看是否有被修改或其他问题:

$ git status

from learning-go-zh-cn.

zwjzxh520 avatar zwjzxh520 commented on August 15, 2024

./fonts/SourceCodePro-Bold.ttf 这个是存在的,只是不知道需要什么特殊权限?
go-setup.tex也有找到两处定义该字体的地方。

from learning-go-zh-cn.

mikespook avatar mikespook commented on August 15, 2024

我抽空安装一个1204试试吧。我也不知道可能是什么原因了。

from learning-go-zh-cn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.