Entries from 2009-11-19 to 1 day

fontconfig により選択されるフォントを知るには

fc-match コマンドを使うのだけど、引数として渡すべきパターンの書き方がよく分からなくて参った。 $ fc-match sans DejaVuSans.ttf: "DejaVu Sans" "Book" $ fc-match sans:weight=200 DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold" $ fc-match sans:lang=ja…

Boost.Python で static property を定義したクラスを含むモジュールをロードしようとするとエラーが出る件

この問題は Python 2.6.3 以降で発生する。たとえば、次のようなモジュールを作成し、 #include <boost/python.hpp> #include <string> class MyClass { public: static std::string get_foo() { return "test"; } }; BOOST_PYTHON_MODULE(_test) { using namespace boost::python; cla</string></boost/python.hpp>…