Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?

More than 5 years have passed since last update.

@laiso

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

無料の高機能なペイントソフト「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
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
5
Help us understand the problem. What is going on with this article?