Re: [ft-devel] Glyph metrics figures on the website
http://webloria.loria.fr/~rougier/tmp/glyph-metrics-horizontal.pdf http://webloria.loria.fr/~rougier/tmp/glyph-metrics-vertical.pdf It'd look lovely in color, but do not over do it. E.g., draw the glyph in black, the axes in red, and the dimensions in blue. Nice idea! But please not too colourful :-) I very much prefer pale colours and shades of gray to get a `serious' look. BTW, can you please give an URL for the source files of the two images? I would like to reduce the margins. And how do you create the PDFs? What about creating SVG images additionally? Today I think it's OK to directly embed SVGs into a web page, and the conversion from PDF to SVG is not optimal; at least not with inkscape. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Glyph metrics figures on the website
On Sun, Oct 28, 2012 at 08:45:14AM +0100, Werner LEMBERG wrote: and the conversion from PDF to SVG is not optimal; at least not with inkscape. If you want a good PDF to SVG converter, try pdf2svg (a small tool using Poppler and Cairo, but handles text much better than Inkscape): http://www.cityinthesky.co.uk/opensource/pdf2svg Regards, Khaled ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Glyph metrics figures on the website
I replaced the CM font with the STIX one (most easy with matplotlib). OK. http://webloria.loria.fr/~rougier/tmp/glyph-metrics-horizontal.pdf http://webloria.loria.fr/~rougier/tmp/glyph-metrics-vertical.pdf Thanks. A very minor thing: In `glyph-metrics-vertical.pdf', the word `origin' overlaps with the arrow above. And another one, for both images: You've converted the `xMax' and `bearingX' labels to $x_max$ and $X_bearing$ (ditto for `y'). I think it is better to use $x_max$ and $x_bearing$ instead to avoid confusion. The uppercase `X' was only the result of camel-casing a variable name. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Glyph metrics figures on the website
Ok. Done ! Nicolas On Oct 27, 2012, at 8:36 , Werner LEMBERG wrote: I replaced the CM font with the STIX one (most easy with matplotlib). OK. http://webloria.loria.fr/~rougier/tmp/glyph-metrics-horizontal.pdf http://webloria.loria.fr/~rougier/tmp/glyph-metrics-vertical.pdf Thanks. A very minor thing: In `glyph-metrics-vertical.pdf', the word `origin' overlaps with the arrow above. And another one, for both images: You've converted the `xMax' and `bearingX' labels to $x_max$ and $X_bearing$ (ditto for `y'). I think it is better to use $x_max$ and $x_bearing$ instead to avoid confusion. The uppercase `X' was only the result of camel-casing a variable name. Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Glyph metrics figures on the website
On Sat, Oct 27, 2012 at 7:38 AM, Nicolas Rougier nicolas.roug...@inria.fr wrote: http://webloria.loria.fr/~rougier/tmp/glyph-metrics-horizontal.pdf http://webloria.loria.fr/~rougier/tmp/glyph-metrics-vertical.pdf It'd look lovely in color, but do not over do it. E.g., draw the glyph in black, the axes in red, and the dimensions in blue. ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
[ft-devel] Glyph metrics figures on the website
Hi, I just added an example in the freetype-py (python bindings) to reproduce glyph metrics as displayed on the website. You can see results at: http://webloria.loria.fr/~rougier/tmp/glyph-metrics.pdf (sources: http://code.google.com/p/freetype-py/source/browse/trunk/examples/glyph-metrics.py) Since images on http://www.freetype.org/freetype2/docs/tutorial/step2.html are a bit ugly (IMHO), maybe it could be a good idea to replace them. What do you think ? Nicolas ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Glyph metrics figures on the website
. If possible, please replace Computer Modern with another font and double its size so that everything stays readable if I scale down the image. BTW, I've just seen that on CTAN the new package tex-gyre-math is available, providing math support for Pagella and Thermes (this is, Palatino and Times). Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] Glyph metrics figures on the website
Here are the two files. I replaced the CM font with the STIX one (most easy with matplotlib). (not so sure how to use the ones you suggested with matplotlib). http://webloria.loria.fr/~rougier/tmp/glyph-metrics-horizontal.pdf http://webloria.loria.fr/~rougier/tmp/glyph-metrics-vertical.pdf The 'g' comes from the Bitstream Vera Sans if the information is needed. Of course, a better solution could be to use pgf/tikz but I did not find how to access all the glyph information. Nicolas On Oct 26, 2012, at 10:21 , Werner LEMBERG wrote: I just added an example in the freetype-py (python bindings) to reproduce glyph metrics as displayed on the website. Very nice! Since images on http://www.freetype.org/freetype2/docs/tutorial/step2.html are a bit ugly (IMHO), maybe it could be a good idea to replace them. What do you think ? An excellent idea, and thanks for the offer! However, I ask you to slightly improve the image: . If possible, please replace Computer Modern with another font and double its size so that everything stays readable if I scale down the image. . Please add some margins to the image. . Please increase the line thickness of the coordinate axis. . What do you think of providing two images instead of one? Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel