[ft-devel] Glyph metrics figures on the website

2012-10-26 Thread Nicolas Rougier


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

2012-10-26 Thread Werner LEMBERG

   . 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

2012-10-26 Thread Nicolas Rougier


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