This is not strictly a question about using Geany. I need to generate PDF reports with latin1, latin2, chinese and greek text mixed. I could not find a good font for this. I noticed that Geany is able to display all this together. Example screenshot:
http://www.shopzeus.com/geany.jpg
I tried to use the installed vera monospace font (VeraMono.ttf) in a PDF file but it could'nt display most of asian characters. Can you please tell me which is that font?
Thanks,
Laszlo
Geany uses the Scintilla text editor widget, which in turn uses a text layout/rendering library called Pango to do international text rendering. I believe (and someone correct me if I am wrong...) that Pango does not use one specific font to do all of its rendering, but will choose a "font" based on the glyph that it needs to render.
For example, Geany simply requests the generic "monospace" font alias by default. But as you can see in the screenshot, the Asian glyphs are not displayed with a fixed width.
Some more appropriate resources to check might be:
http://www.pango.org/ http://en.wikipedia.org/wiki/Pango http://en.wikipedia.org/wiki/I18n http://www.cairographics.org/
Laszlo Nagy wrote:
This is not strictly a question about using Geany. I need to generate PDF reports with latin1, latin2, chinese and greek text mixed. I could not find a good font for this. I noticed that Geany is able to display all this together. Example screenshot:
http://www.shopzeus.com/geany.jpg
I tried to use the installed vera monospace font (VeraMono.ttf) in a PDF file but it could'nt display most of asian characters. Can you please tell me which is that font?
Thanks,
Laszlo
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Jason Oster írta:
Geany uses the Scintilla text editor widget, which in turn uses a text layout/rendering library called Pango to do international text rendering. I believe (and someone correct me if I am wrong...) that Pango does not use one specific font to do all of its rendering, but will choose a "font" based on the glyph that it needs to render.
For example, Geany simply requests the generic "monospace" font alias by default. But as you can see in the screenshot, the Asian glyphs are not displayed with a fixed width.
Some more appropriate resources to check might be:
http://www.pango.org/ http://en.wikipedia.org/wiki/Pango http://en.wikipedia.org/wiki/I18n http://www.cairographics.org/
That is bad news. :-( I've used pango before, but I was hoping that there is a simple font that can do this for me. Unfortunately, this won't work with reportlab and PDF. :-(
I'm not sure what reportlab is, but if you can generate the PDFs with either Cairo (and it's PDF backend) or OpenOffice.Org, these may be the best solutions for you.
In either case, these are going to use Pango for the text layout, which will auto-magically choose the right glyphs and everything. :\
Laszlo Nagy wrote:
Jason Oster írta:
Geany uses the Scintilla text editor widget, which in turn uses a text layout/rendering library called Pango to do international text rendering. I believe (and someone correct me if I am wrong...) that Pango does not use one specific font to do all of its rendering, but will choose a "font" based on the glyph that it needs to render.
For example, Geany simply requests the generic "monospace" font alias by default. But as you can see in the screenshot, the Asian glyphs are not displayed with a fixed width.
Some more appropriate resources to check might be:
http://www.pango.org/ http://en.wikipedia.org/wiki/Pango http://en.wikipedia.org/wiki/I18n http://www.cairographics.org/
That is bad news. :-( I've used pango before, but I was hoping that there is a simple font that can do this for me. Unfortunately, this won't work with reportlab and PDF. :-( _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Jason Oster wrote:
I'm not sure what reportlab is, but if you can generate the PDFs with either Cairo (and it's PDF backend) or OpenOffice.Org, these may be the best solutions for you.
Reportlab is here: http://www.reportlab.org/
It has a layout engine called 'platypus'. It is able to handle automatic page headers and footers, repeat first rows/cols of bigger tables that do not fit on one page etc. I choose this because the higher level of abstraction. I can go down to Cairo level but then I need to develop my own layout engine. Or is it not true? Is there a reporting tool built on Cairo, with Python bindings?
Sorry for being offtopic.
L
On Mon, 08 Sep 2008 19:26:42 +0200, Laszlo Nagy gandalf@shopzeus.com wrote:
Jason Oster wrote:
I'm not sure what reportlab is, but if you can generate the PDFs with either Cairo (and it's PDF backend) or OpenOffice.Org, these may be the best solutions for you.
Reportlab is here: http://www.reportlab.org/
It has a layout engine called 'platypus'. It is able to handle automatic page headers and footers, repeat first rows/cols of bigger
It's probably better to ask them which font or settings to use? The only thing I could tell you is that Geany uses by default Monospace but as Jason already told, this is only a font alias and the real font which is used depends on the user's system and the fonts which are installed there, this might even differ on two Ubuntu systems.
Sorry for being offtopic.
No problem.
Regards, Enrico