5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ネイティブ化したMac版GIMP 2.8.2がフォント周りのエラーで起動しないのをなんとかする

Last updated at Posted at 2012-08-31

無料の高機能なペイントソフト「GIMP for Mac」が「X11」なしで動作可能に のコメント欄などで話題になってる。

なんとかしたのでメモ。他の方法あったら知りたい。

(追記)
App Language Chooser を使って日本語システム設定からGIMPだけ英語ロケールで起動できるみたい。これが一番安全で簡単そう>

(以下は初稿)
あ、ちなみに上のコメント欄で既出だけどシステム設定で言語環境を英語にすれば起動できるらしい。ためしたいだけならそれでいいか。

環境は以下

  system_profiler SPSoftwareDataType
    Software:

        System Software Overview:

          System Version: OS X 10.8.1 (12B19)
          Kernel Version: Darwin 12.1.0
          ...

システム言語設定は日本語にしてる。

なにをするかといえばAquaKanaの退避をする。

  sudo mv /System/Library/Fonts/AquaKana.ttc ~/Documents/

AquaKana.ttcが存在しないとどういう問題が起きうるかまたはたいしたことないのか、はGoogle検索すると出てきます(your own risk)。

調べてみたところ

AquaKanaをシステムから削除するとFinderの表示はこのように変わります。調べてみると「変なフォント」とは「STHeiti(ファイル名:华文细黑.ttf)」。中国語フォントのようです。
嫌われもののAquaKanaを排除する - blog.coluli.net/

これが起きた。

AquaKana.ttc をそのままにGIMPからだけ別のフォントを指定できるようなれば解決の気がする。

  # Carbon, CocoaフレームワークにリンクしているGIMP氏(当時2.8.2)の様子
  otool -L /Applications/GIMP.app/Contents/MacOS/GIMP-bin | grep Frameworks
          /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.62.0)
          /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)
          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
          /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.43.0)
          /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0)
          /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
  • 以下検索エンジンから来る人用のエラーメッセージ貼り付け
Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file '/var/lib/dbus/machine-id': No such file or directory

(GIMP-bin:93932): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(GIMP-bin:93932): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed

(GIMP-bin:93932): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(GIMP-bin:93932): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='common'

(GIMP-bin:93932): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(GIMP-bin:93932): Pango-WARNING **: couldn't load font ".Aqua Kana Not-Rotated 12px", modified variant/weight/stretch as fallback, expect ugly output.

(GIMP-bin:93932): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(GIMP-bin:93932): Pango-ERROR **: Could not load fallback font, bailing out.
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?