Closed tk0miya closed 6 years ago
From Takayuki Shimizukawa on 2010-09-30 04:27:25+00:00
前述のページに掲載されていたもう一つの方法、2値画像への文字描画を用いた解決方法について、 non-antialiased-text ブランチを作成してコミットしました。ただし、fill=(0,0,0)ではエラーとなるため(2値だから?)、filll='#000' で逃げています。
mode について詳しくはこちら。 http://www.pythonware.com/library/pil/handbook/concepts.htm
現在の実装は文字背景色白、文字色黒、で固定実装しています。どちらも色を変えたいと思った場合は文字描画後に色を変換するような仕組みを考える必要がありそうです。
From Takeshi KOMIYA on 2010-09-30 04:41:07+00:00
ノードの背景が白固定となってしまうのは、color 属性や background 属性と 明らかにバッティングするのでそのままでは採用できません。 多少変換コストがかかったとしても、ユーザの指定を優先にしたいと考えています。
マスクを使って文字を転写するなど何かいいアイディアがないでしょうか。
From Takeshi KOMIYA on 2012-03-16 09:02:43+00:00
Fixed in [[https://bitbucket.org/tk0miya/seqdiag/changeset/311c2b2c4643|311c2b2c4643]]
Hi,
I have a network with 55 segments, I'm selecting only one host by network topology (if there are X hosts with interfaces in netA, netB, and netC, for example, only the first will be in the diagram)
My problem is that the layout is not too big, and letters are very small, and i can't zoom and get it readable.
I'm trying to generate a pdf, evince read it ok (but I can't read letters clearly). trying to open the svg generated file with eog, hang eog.
I'm attaching an anonimated diagram which I hope will understand you what I am saying :)
Do you know any workarround ?
Thank you making this kind of software possible !