Pango font metric discrepency
- From: nerdy <nerds_ebook1 yahoo com>
- To: gtk-app-devel-list gnome org, gtk-devel-list gnome org, gtk-list gnome org, gtk-i18n-list gnome org
- Cc:
- Subject: Pango font metric discrepency
- Date: Tue, 18 Apr 2006 03:44:22 -0700 (PDT)
Hello,
I would like to know why there is a difference in the font metrics between simillar fonts in windows and linux. For example for arial font of size 34, the ascent, descent and char width has values of 32, 7 and 9 respectively in windows MFC . But when using gtk pango, the values are 43, 13 and 13 respectively. Why is there a discrepency in the metrics of a similar font. Note that I am using same ttf file in both windows and linux.
In windows , I am extracting the metric information using MFC API.
In linux, I am extracting the metric information using pango_font_metrics_get_ascent, pango_font_metrics_get_descent functions.
Thanks and regards,
nerdy
Love cheap thrills? Enjoy PC-to-Phone
calls to 30+ countries for just 2�/min with Yahoo! Messenger with Voice.
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]