toge's diary

コンピュータ関連の趣味をつらつらと。

Processing beta86

なんかフォント周りがぐちゃぐちゃです。なぜ?

Warning: Cannot convert string xxx to type FontStruct

J2SDK5.0のfont.propertiesは設定しているのでおかしいなぁと思っていたら、Processingはjreを自分で持っているのね。気がつかんかった。
以下作業ログ。

  1. (processing)/java/lib/font.properties*をfont.properties.ja以外を全て削除
  2. (processing)/java/lib/font.properties.jaを適切に直す(私の設定例)

ということでうまく動作させましたが、早速beta87が上がってますね。何が変わったのやら。(追記:バグフィックスのようですね。)


ちなみにprocessingはシェルスクリプトで、そのファイル場所をカレントディレクトリにして実行しないと駄目です。不便やの。
個人的に許せなかったので直してみました。

#!/bin/sh

BASEP=`dirname $0`

CLASSPATH=${BASEP}/java/lib/rt.jar:${BASEP}/lib:${BASEP}/lib/build:${BASEP}/lib/pde.jar:${BASEP}/lib/core.jar:${BASEP}/lib/antlr.jar:${BASEP}/lib/oro.jar:${BASEP}/lib/registry.jar:${BASEP}/lib/mrj.jar
export CLASSPATH

# put the directory where this file lives in the front of the path, because
# that directory also contains jikes, which we will need at runtime.
#
PATH=${BASEP}:${BASEP}/java/bin:${PATH}
export PATH

if test -f /usr/lib/libstdc++-libc6.2-2.so.3
then
java processing.app.Base
else
echo Processing uses jikes, which requires libstdc++-libc6.2-2.so.3
echo You need to install it or the rpm/package for compat-libstdc++
echo before Processing will run. Or if you have jikes working properly,
echo and know what you are doing, you should edit this script.
fi

BASEPがポイントですな。これで大分楽になりました。
しかjikesのために随分トリッキーなことしてますね。