Archived: Unofficial Windows Binaries for Python Extension Packages by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC. This page provides 32 and 64-bit Windows binaries of many scientific open-source extension packages for the official CPython distribution of the Python programming language. A few binaries are available for the PyPy distribution. The files are unofficial (meaning: inform
先日Pycon mini JPにいった時に、blockdiagというナイスなソフトを知りました。 ので使ってみようと思い、pipからインストールすると怒られます。 reki$:pip install blockdiag (略) reki$: blockdiag -o test.png test.diag Traceback (most recent call last): File "/usr/local/bin/blockdiag", line 8, in <module> load_entry_point('blockdiag==0.6.6', 'console_scripts', 'blockdiag')() File "/Library/Python/2.6/site-packages/blockdiag/blockdiag.py", line 421, in main draw.
PIL(Python Image Libraly)で日本語フォント使おうとすると、ラスタライズ結果がぐちゃぐちゃになることがある。これはハマった。 つぶれる条件はどうやら、ビットマップを持つフォントのビットマップが適用される場合のようだ。ビットマップが適用されないぐらい十分大きいサイズで描いて、それを目的のサイズに縮小して問題を回避。アンチエイリアスされた文字を得るのが目的ならこれでOK。 import Image, ImageFont, ImageDraw def imaged_text(text, fontfile, fontsize, color, scale_bias=4): font = ImageFont.truetype(fontfile, fontsize * scale_bias) image = Image.new('RGBA', (1, 1)) draw = Imag
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く