Ignore:
Timestamp:
Apr 12, 2009, 10:25:05 AM (13 years ago)
Author:
Eugene Romanenko
Message:

PDF plugin: freetype library updated to version 2.3.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/freetype2/src/type1/t1gload.c

    r262 r269  
    55/*    Type 1 Glyph Loader (body).                                          */
    66/*                                                                         */
    7 /*  Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2008 by             */
     7/*  Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 by       */
    88/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
    99/*                                                                         */
     
    296296      load_flags |= FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING;
    297297
    298     glyph->x_scale = size->root.metrics.x_scale;
    299     glyph->y_scale = size->root.metrics.y_scale;
     298    if ( size )
     299    {
     300      glyph->x_scale = size->root.metrics.x_scale;
     301      glyph->y_scale = size->root.metrics.y_scale;
     302    }
     303    else
     304    {
     305      glyph->x_scale = 0x10000L;
     306      glyph->y_scale = 0x10000L;
     307    }
    300308
    301309    glyph->root.outline.n_points   = 0;
     
    431439
    432440          /* Then scale the metrics */
    433           metrics->horiAdvance  = FT_MulFix( metrics->horiAdvance, x_scale );
    434           metrics->vertAdvance  = FT_MulFix( metrics->vertAdvance, y_scale );
     441          metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale );
     442          metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale );
    435443        }
    436444
Note: See TracChangeset for help on using the changeset viewer.