[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing
From: |
Kenichi Handa |
Subject: |
Re: Printing |
Date: |
Wed, 08 Apr 2009 10:33:59 +0900 |
In article <address@hidden>, YAMAMOTO Mitsuharu <address@hidden> writes:
> Handa-san, could you check if the following change to ftfont.c is
> correct? It is also included in the revised patch below.
Thank you. Those changes are correct. I've just committed them.
> *************** ftfont_text_extents (font, code, nglyphs
> *** 1255,1261 ****
> metrics->lbearing = m->horiBearingX >> 6;
> metrics->rbearing = (m->horiBearingX + m->width) >> 6;
> metrics->ascent = m->horiBearingY >> 6;
> ! metrics->descent = (m->horiBearingY + m->height) >> 6;
> }
> first = 0;
> }
> --- 1255,1261 ----
> metrics->lbearing = m->horiBearingX >> 6;
> metrics->rbearing = (m->horiBearingX + m->width) >> 6;
> metrics->ascent = m->horiBearingY >> 6;
> ! metrics->descent = (m->height - m->horiBearingY) >> 6;
> }
> first = 0;
> }
> *************** ftfont_text_extents (font, code, nglyphs
> *** 1269,1276 ****
> = width + ((m->horiBearingX + m->width) >> 6);
> if (metrics->ascent < (m->horiBearingY >> 6))
> metrics->ascent = m->horiBearingY >> 6;
> ! if (metrics->descent > ((m->horiBearingY + m->height) >> 6))
> ! metrics->descent = (m->horiBearingY + m->height) >> 6;
> }
> width += m->horiAdvance >> 6;
> }
> --- 1269,1276 ----
> = width + ((m->horiBearingX + m->width) >> 6);
> if (metrics->ascent < (m->horiBearingY >> 6))
> metrics->ascent = m->horiBearingY >> 6;
> ! if (metrics->descent < ((m->height - m->horiBearingY) >> 6))
> ! metrics->descent = (m->height - m->horiBearingY) >> 6;
> }
> width += m->horiAdvance >> 6;
> }
---
Kenichi Handa
address@hidden
- Re: Printing, (continued)
- Re: Printing, YAMAMOTO Mitsuharu, 2009/04/04
- Re: Printing, Kenichi Handa, 2009/04/06
- Re: Printing, YAMAMOTO Mitsuharu, 2009/04/06
- Re: Printing, Kenichi Handa, 2009/04/06
- Re: Printing, YAMAMOTO Mitsuharu, 2009/04/06
- Re: Printing, Kenichi Handa, 2009/04/06
- Re: Printing, YAMAMOTO Mitsuharu, 2009/04/06
- Future of display engine [Re: Printing], Kenichi Handa, 2009/04/07
- Re: Future of display engine [Re: Printing], YAMAMOTO Mitsuharu, 2009/04/07
- Re: Printing, YAMAMOTO Mitsuharu, 2009/04/07
- Re: Printing,
Kenichi Handa <=
- Re: Printing, YAMAMOTO Mitsuharu, 2009/04/19
Re: Printing, tomas, 2009/04/02
- Re: Printing, Lennart Borgman, 2009/04/02
- Re: Printing, tomas, 2009/04/02
- Re: Printing, Lennart Borgman, 2009/04/02
- Re: Printing, Stefan Monnier, 2009/04/02
- Re: Printing, Óscar Fuentes, 2009/04/02
- Re: Printing, Samuel Bronson, 2009/04/02
- Re: Printing, Óscar Fuentes, 2009/04/02
- Re: Printing, Lennart Borgman, 2009/04/02