RE: [ft-devel] FT_LOAD_VERTICAL_LAYOUT?

2010-05-26 Thread Ronen Ghoshal
The QL Suites offer no way I can see to detect this.


-Original Message-
From: freetype-devel-bounces+rghoshal=emtex@nongnu.org 
[mailto:freetype-devel-bounces+rghoshal=emtex@nongnu.org] On Behalf Of 
David Bevan
Sent: 25 May 2010 16:26
To: freetype-devel@nongnu.org
Cc: Stephen Brazier
Subject: RE: [ft-devel] FT_LOAD_VERTICAL_LAYOUT?


Thanks for the feedback on this.

Does anyone have access to any PDF files which contain vertical writing mode 
text? If so, would it be possible to send some to me off-line?

Thanks.

David %^


-Original Message-
From: Behdad Esfahbod [mailto:behdad.esfah...@gmail.com] On Behalf Of Behdad 
Esfahbod
Sent: 05 May 2010 20:40
To: David Bevan
Cc: freetype-devel@nongnu.org; Antony Bush; Stephen Brazier; Houjie Tu
Subject: Re: [ft-devel] FT_LOAD_VERTICAL_LAYOUT?

On 05/05/2010 08:55 AM, David Bevan wrote:
 And how /should/ FreeType be used for vertical writing mode?


This is how cairo handles it:


/*
 * Translate glyph to match its vertical metrics.
 */
static void
_cairo_ft_scaled_glyph_vertical_layout_bearing_fix (void*abstract_font,
FT_GlyphSlot glyph)
{
cairo_ft_scaled_font_t *scaled_font = abstract_font;
FT_Vector vector;

vector.x = glyph-metrics.vertBearingX - glyph-metrics.horiBearingX;
vector.y = -glyph-metrics.vertBearingY - glyph-metrics.horiBearingY;

if (glyph-format == FT_GLYPH_FORMAT_OUTLINE) {
FT_Vector_Transform (vector, scaled_font-unscaled-Current_Shape);
FT_Outline_Translate(glyph-outline, vector.x, vector.y);
} else if (glyph-format == FT_GLYPH_FORMAT_BITMAP) {
glyph-bitmap_left += vector.x / 64;
glyph-bitmap_top  += vector.y / 64;
}
}


behdad


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


[ft-devel] unused variable in af_glyph_hints_reload

2010-05-26 Thread Graham Asher

A finicky compiler told me that the variable

AF_Point first

in af_glyph_hints_reload in afhints.c was unnecessary. This turns out to 
be true (but note that there are two separate variables of this name in 
the function: we're talking about the first 'first'). It is assigned to 
at line 526:


first = point + 1;

but never used, so both the declaration and the assignment can be removed.

Graham


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] unused variable in af_glyph_hints_reload

2010-05-26 Thread Werner LEMBERG
 A finicky compiler told me that the variable
 
 AF_Point first
 
 in af_glyph_hints_reload in afhints.c was unnecessary.

Removed in git, thanks.


Werner

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] FT_LOAD_VERTICAL_LAYOUT?

2010-05-26 Thread Werner LEMBERG

 Does anyone have access to any PDF files which contain vertical
 writing mode text?  If so, would it be possible to send some to me
 off-line?

Ken Lunde from Adobe provided the attached example.


Werner


sample-v.pdf
Description: Adobe PDF document
___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel