質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
font

近年は、コンピュータ上、紙面上で利用できる書体データのことをfontといいます。数える時の単位は「書体」で、データとしてのフォントは、デジタルフォントと呼ばれる場合があります。 HTML/CSSでは要素を指定し、フォント情報を調整することができます。

Q&A

1回答

2003閲覧

Ricty生成時のエラー

ippo_abc

総合スコア12

font

近年は、コンピュータ上、紙面上で利用できる書体データのことをfontといいます。数える時の単位は「書体」で、データとしてのフォントは、デジタルフォントと呼ばれる場合があります。 HTML/CSSでは要素を指定し、フォント情報を調整することができます。

0グッド

0クリップ

投稿2016/02/23 01:27

Ricty生成時に以下のエラーが出るのですが、原因がわかりません。原因がわかる方教えていただけないでしょうか?

$ sudo bash -x ~/Ricty/ricty_generator.sh -v auto + ricty_version=4.0.1 + ricty_familyname=Ricty + ricty_familyname_suffix= + ricty_ascent=835 + ricty_descent=215 + fontforge_command=fontforge + redirection_stderr=/dev/null + fonts_directories='. /Users/ippo/.fonts /usr/local/share/fonts /usr/share/fonts /Users/ippo/Library/Fonts /Library/Fonts /c/Windows/Fonts /cygdrive/c/Windows/Fonts' + zenkaku_space_glyph= + leaving_tmp_flag=false + fullwidth_ambiguous_flag=true + scaling_down_flag=true + modified_inconsolata_generator=modified_inconsolata_generator.pe + modified_inconsolata_regular=Modified-Inconsolata-Regular.sfd + modified_inconsolata_bold=Modified-Inconsolata-Bold.sfd + modified_migu1m_generator=modified_migu1m_generator.pe + modified_migu1m_regular=Modified-migu-1m-regular.sfd + modified_migu1m_bold=Modified-migu-1m-bold.sfd + ricty_generator=ricty_generator.pe + cat Ricty Generator 4.0.1 Copyright (c) 2011-2015, Yasunori Yusa <yascentur at gmail.com> All rights reserved. This script is to generate ``Ricty'' font from Inconsolata and Migu 1M. It requires 2-5 minutes to generate Ricty. Owing to SIL Open Font License Version 1.1 section 5, it is PROHIBITED to distribute the generated font. + getopts hVf:vln:wWbBZ:zas OPT + case "$OPT" in + echo 'Option: Enable verbose mode' Option: Enable verbose mode + redirection_stderr=/dev/stderr + getopts hVf:vln:wWbBZ:zas OPT ++ expr 2 - 1 + shift 1 + which fontforge + '[' 1 -eq 1 -a auto = auto ']' + tmp= + for i in '$fonts_directories' + '[' -d . ']' + tmp=' .' + for i in '$fonts_directories' + '[' -d /Users/ippo/.fonts ']' + for i in '$fonts_directories' + '[' -d /usr/local/share/fonts ']' + for i in '$fonts_directories' + '[' -d /usr/share/fonts ']' + for i in '$fonts_directories' + '[' -d /Users/ippo/Library/Fonts ']' + tmp=' . /Users/ippo/Library/Fonts' + for i in '$fonts_directories' + '[' -d /Library/Fonts ']' + tmp=' . /Users/ippo/Library/Fonts /Library/Fonts' + for i in '$fonts_directories' + '[' -d /c/Windows/Fonts ']' + for i in '$fonts_directories' + '[' -d /cygdrive/c/Windows/Fonts ']' + fonts_directories=' . /Users/ippo/Library/Fonts /Library/Fonts' ++ find . /Users/ippo/Library/Fonts /Library/Fonts -follow -name Inconsolata-Regular.ttf ++ head -n 1 + input_inconsolata_regular=/Users/ippo/Library/Fonts/Inconsolata-Regular.ttf ++ find . /Users/ippo/Library/Fonts /Library/Fonts -follow -name Inconsolata-Bold.ttf ++ head -n 1 + input_inconsolata_bold=/Users/ippo/Library/Fonts/Inconsolata-Bold.ttf + '[' -z /Users/ippo/Library/Fonts/Inconsolata-Regular.ttf -o -z /Users/ippo/Library/Fonts/Inconsolata-Bold.ttf ']' ++ find . /Users/ippo/Library/Fonts /Library/Fonts -follow -iname migu-1m-regular.ttf ++ head -n 1 + input_migu1m_regular=/Users/ippo/Library/Fonts/migu-1m-regular.ttf ++ find . /Users/ippo/Library/Fonts /Library/Fonts -follow -iname migu-1m-bold.ttf ++ head -n 1 + input_migu1m_bold=/Users/ippo/Library/Fonts/migu-1m-bold.ttf + '[' -z /Users/ippo/Library/Fonts/migu-1m-regular.ttf -o -z /Users/ippo/Library/Fonts/migu-1m-bold.ttf ']' + '[' -w /tmp -a false = false ']' ++ mktemp -d /tmp/ricty_generator_tmpdir.XXXXXX + tmpdir=/tmp/ricty_generator_tmpdir.sRxkz5 + '[' false = false ']' + trap 'if [ -d "/tmp/ricty_generator_tmpdir.sRxkz5" ]; then echo '\''Remove temporary files.'\''; rm -rf /tmp/ricty_generator_tmpdir.sRxkz5; echo '\''Abnormally terminated.'\''; fi; exit 3' HUP INT QUIT + trap 'if [ -d "/tmp/ricty_generator_tmpdir.sRxkz5" ]; then echo '\''Remove temporary files.'\''; rm -rf /tmp/ricty_generator_tmpdir.sRxkz5; echo '\''Abnormally terminated.'\''; fi' EXIT + cat + cat + cat + fontforge -script /tmp/ricty_generator_tmpdir.sRxkz5/modified_inconsolata_generator.pe Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE. Based on sources from 10:51 PDT 13-Sep-2015-D. Based on source from git with hash: Generate modified Inconsolata. Open /Users/ippo/Library/Fonts/Inconsolata-Regular.ttf. The following table(s) in the font have been ignored by FontForge Ignoring 'LTSH' linear threshold table Ignoring 'VDMX' vertical device metrics table The glyph named visiblespace is mapped to U+2423. But its name indicates it should be mapped to U+2420. Remove ambiguous glyphs. Process for merging. Save Modified-Inconsolata-Regular.sfd. Open /Users/ippo/Library/Fonts/Inconsolata-Bold.ttf. The glyph named visiblespace is mapped to U+2423. But its name indicates it should be mapped to U+2420. Remove ambiguous glyphs. Process for merging. Save Modified-Inconsolata-Bold.sfd. + fontforge -script /tmp/ricty_generator_tmpdir.sRxkz5/modified_migu1m_generator.pe Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE. Based on sources from 10:51 PDT 13-Sep-2015-D. Based on source from git with hash: Generate modified Migu 1M. Open /Users/ippo/Library/Fonts/migu-1m-regular.ttf. Scale down all glyphs (it may takes a little time). Process for merging. Save Modified-migu-1m-regular.sfd. Open /Users/ippo/Library/Fonts/migu-1m-bold.ttf. Scale down all glyphs (it may takes a little time). Process for merging. Save Modified-migu-1m-bold.sfd. + fontforge -script /tmp/ricty_generator_tmpdir.sRxkz5/ricty_generator.pe Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE. Based on sources from 10:51 PDT 13-Sep-2015-D. Based on source from git with hash: Generate Ricty. Merge Modified-Inconsolata-Regular.sfd with Modified-migu-1m-regular.sfd. Edit zenkaku space. Edit zenkaku comma and period. Edit zenkaku colon and semicolon. Edit zenkaku brackets. Edit en and em dashes. Process before saving (it may takes a little time). Save Ricty-Regular.ttf. 保存に失敗しました. Generate: Save failed Called from... /tmp/ricty_generator_tmpdir.sRxkz5/ricty_generator.pe: 140 行目 + exit 4 + '[' -d /tmp/ricty_generator_tmpdir.sRxkz5 ']' + echo 'Remove temporary files.' Remove temporary files. + rm -rf /tmp/ricty_generator_tmpdir.sRxkz5 + echo 'Abnormally terminated.' Abnormally terminated.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

rictyの公式サポートが無くなってから回答するのもなんですが…

エラーとしては「フォントファイルが書き込めない」という感じのようです。
sudoをつけているのが、少し気になります。

rootだと誰のファイルでも上書きできてしまうので,/tmpの書き込みを制限している
環境もありそうです。

autoオプションではなく元のフォントファイルを一々指定する方がいいように思います。

投稿2023/06/18 12:22

ujimushi_sradjp

総合スコア2087

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問