亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ftgloadr.c

?? a very goog book
?? C
字號:
/***************************************************************************//*                                                                         *//*  ftgloadr.c                                                             *//*                                                                         *//*    The FreeType glyph loader (body).                                    *//*                                                                         *//*  Copyright 2002 by                                                      *//*  David Turner, Robert Wilhelm, and Werner Lemberg                       *//*                                                                         *//*  This file is part of the FreeType project, and may only be used,       *//*  modified, and distributed under the terms of the FreeType project      *//*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     *//*  this file you indicate that you have read the license and              *//*  understand and accept it fully.                                        *//*                                                                         *//***************************************************************************/#include <ft2build.h>#include FT_INTERNAL_GLYPH_LOADER_H#include FT_INTERNAL_MEMORY_H#undef  FT_COMPONENT#define FT_COMPONENT  trace_gloader  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*****                                                               *****/  /*****                                                               *****/  /*****                    G L Y P H   L O A D E R                    *****/  /*****                                                               *****/  /*****                                                               *****/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* The glyph loader is a simple object which is used to load a set of    */  /* glyphs easily.  It is critical for the correct loading of composites. */  /*                                                                       */  /* Ideally, one can see it as a stack of abstract `glyph' objects.       */  /*                                                                       */  /*   loader.base     Is really the bottom of the stack.  It describes a  */  /*                   single glyph image made of the juxtaposition of     */  /*                   several glyphs (those `in the stack').              */  /*                                                                       */  /*   loader.current  Describes the top of the stack, on which a new      */  /*                   glyph can be loaded.                                */  /*                                                                       */  /*   Rewind          Clears the stack.                                   */  /*   Prepare         Set up `loader.current' for addition of a new glyph */  /*                   image.                                              */  /*   Add             Add the `current' glyph image to the `base' one,    */  /*                   and prepare for another one.                        */  /*                                                                       */  /* The glyph loader is now a base object.  Each driver used to           */  /* re-implement it in one way or the other, which wasted code and        */  /* energy.                                                               */  /*                                                                       */  /*************************************************************************/  /* create a new glyph loader */  FT_BASE_DEF( FT_Error )  FT_GlyphLoader_New( FT_Memory        memory,                      FT_GlyphLoader  *aloader )  {    FT_GlyphLoader  loader;    FT_Error        error;    if ( !FT_NEW( loader ) )    {      loader->memory = memory;      *aloader       = loader;    }    return error;  }  /* rewind the glyph loader - reset counters to 0 */  FT_BASE_DEF( void )  FT_GlyphLoader_Rewind( FT_GlyphLoader  loader )  {    FT_GlyphLoad  base    = &loader->base;    FT_GlyphLoad  current = &loader->current;    base->outline.n_points   = 0;    base->outline.n_contours = 0;    base->num_subglyphs      = 0;    *current = *base;  }  /* reset the glyph loader, frees all allocated tables */  /* and starts from zero                               */  FT_BASE_DEF( void )  FT_GlyphLoader_Reset( FT_GlyphLoader  loader )  {    FT_Memory memory = loader->memory;    FT_FREE( loader->base.outline.points );    FT_FREE( loader->base.outline.tags );    FT_FREE( loader->base.outline.contours );    FT_FREE( loader->base.extra_points );    FT_FREE( loader->base.subglyphs );    loader->max_points    = 0;    loader->max_contours  = 0;    loader->max_subglyphs = 0;    FT_GlyphLoader_Rewind( loader );  }  /* delete a glyph loader */  FT_BASE_DEF( void )  FT_GlyphLoader_Done( FT_GlyphLoader  loader )  {    if ( loader )    {      FT_Memory memory = loader->memory;      FT_GlyphLoader_Reset( loader );      FT_FREE( loader );    }  }  /* re-adjust the `current' outline fields */  static void  FT_GlyphLoader_Adjust_Points( FT_GlyphLoader  loader )  {    FT_Outline*  base    = &loader->base.outline;    FT_Outline*  current = &loader->current.outline;    current->points   = base->points   + base->n_points;    current->tags     = base->tags     + base->n_points;    current->contours = base->contours + base->n_contours;    /* handle extra points table - if any */    if ( loader->use_extra )      loader->current.extra_points =        loader->base.extra_points + base->n_points;  }  FT_BASE_DEF( FT_Error )  FT_GlyphLoader_CreateExtra( FT_GlyphLoader  loader )  {    FT_Error   error;    FT_Memory  memory = loader->memory;    if ( !FT_NEW_ARRAY( loader->base.extra_points, loader->max_points ) )    {      loader->use_extra = 1;      FT_GlyphLoader_Adjust_Points( loader );    }    return error;  }  /* re-adjust the `current' subglyphs field */  static void  FT_GlyphLoader_Adjust_Subglyphs( FT_GlyphLoader  loader )  {    FT_GlyphLoad  base    = &loader->base;    FT_GlyphLoad  current = &loader->current;    current->subglyphs = base->subglyphs + base->num_subglyphs;  }  /* Ensure that we can add `n_points' and `n_contours' to our glyph. this */  /* function reallocates its outline tables if necessary.  Note that it   */  /* DOESN'T change the number of points within the loader!                */  /*                                                                       */  FT_BASE_DEF( FT_Error )  FT_GlyphLoader_CheckPoints( FT_GlyphLoader  loader,                               FT_UInt        n_points,                               FT_UInt        n_contours )  {    FT_Memory    memory  = loader->memory;    FT_Error     error   = FT_Err_Ok;    FT_Outline*  base    = &loader->base.outline;    FT_Outline*  current = &loader->current.outline;    FT_Bool      adjust  = 1;    FT_UInt      new_max, old_max;    /* check points & tags */    new_max = base->n_points + current->n_points + n_points;    old_max = loader->max_points;    if ( new_max > old_max )    {      new_max = ( new_max + 7 ) & -8;      if ( FT_RENEW_ARRAY( base->points, old_max, new_max ) ||           FT_RENEW_ARRAY( base->tags,   old_max, new_max ) )        goto Exit;      if ( loader->use_extra &&           FT_RENEW_ARRAY( loader->base.extra_points, old_max, new_max ) )        goto Exit;      adjust = 1;      loader->max_points = new_max;    }    /* check contours */    old_max = loader->max_contours;    new_max = base->n_contours + current->n_contours +              n_contours;    if ( new_max > old_max )    {      new_max = ( new_max + 3 ) & -4;      if ( FT_RENEW_ARRAY( base->contours, old_max, new_max ) )        goto Exit;      adjust = 1;      loader->max_contours = new_max;    }    if ( adjust )      FT_GlyphLoader_Adjust_Points( loader );  Exit:    return error;  }  /* Ensure that we can add `n_subglyphs' to our glyph. this function */  /* reallocates its subglyphs table if necessary.  Note that it DOES */  /* NOT change the number of subglyphs within the loader!            */  /*                                                                  */  FT_BASE_DEF( FT_Error )  FT_GlyphLoader_CheckSubGlyphs( FT_GlyphLoader  loader,                                 FT_UInt         n_subs )  {    FT_Memory     memory = loader->memory;    FT_Error      error  = FT_Err_Ok;    FT_UInt       new_max, old_max;    FT_GlyphLoad  base    = &loader->base;    FT_GlyphLoad  current = &loader->current;    new_max = base->num_subglyphs + current->num_subglyphs + n_subs;    old_max = loader->max_subglyphs;    if ( new_max > old_max )    {      new_max = ( new_max + 1 ) & -2;      if ( FT_RENEW_ARRAY( base->subglyphs, old_max, new_max ) )        goto Exit;      loader->max_subglyphs = new_max;      FT_GlyphLoader_Adjust_Subglyphs( loader );    }  Exit:    return error;  }  /* prepare loader for the addition of a new glyph on top of the base one */  FT_BASE_DEF( void )  FT_GlyphLoader_Prepare( FT_GlyphLoader  loader )  {    FT_GlyphLoad  current = &loader->current;    current->outline.n_points   = 0;    current->outline.n_contours = 0;    current->num_subglyphs      = 0;    FT_GlyphLoader_Adjust_Points   ( loader );    FT_GlyphLoader_Adjust_Subglyphs( loader );  }  /* add current glyph to the base image - and prepare for another */  FT_BASE_DEF( void )  FT_GlyphLoader_Add( FT_GlyphLoader  loader )  {    FT_GlyphLoad  base    = &loader->base;    FT_GlyphLoad  current = &loader->current;    FT_UInt       n_curr_contours = current->outline.n_contours;    FT_UInt       n_base_points   = base->outline.n_points;    FT_UInt       n;    base->outline.n_points =      (short)( base->outline.n_points + current->outline.n_points );    base->outline.n_contours =      (short)( base->outline.n_contours + current->outline.n_contours );    base->num_subglyphs += current->num_subglyphs;    /* adjust contours count in newest outline */    for ( n = 0; n < n_curr_contours; n++ )      current->outline.contours[n] =        (short)( current->outline.contours[n] + n_base_points );    /* prepare for another new glyph image */    FT_GlyphLoader_Prepare( loader );  }  FT_BASE_DEF( FT_Error )  FT_GlyphLoader_CopyPoints( FT_GlyphLoader  target,                             FT_GlyphLoader  source )  {    FT_Error  error;    FT_UInt   num_points   = source->base.outline.n_points;    FT_UInt   num_contours = source->base.outline.n_contours;    error = FT_GlyphLoader_CheckPoints( target, num_points, num_contours );    if ( !error )    {      FT_Outline*  out = &target->base.outline;      FT_Outline*  in  = &source->base.outline;      FT_MEM_COPY( out->points, in->points,                   num_points * sizeof ( FT_Vector ) );      FT_MEM_COPY( out->tags, in->tags,                   num_points * sizeof ( char ) );      FT_MEM_COPY( out->contours, in->contours,                   num_contours * sizeof ( short ) );      /* do we need to copy the extra points? */      if ( target->use_extra && source->use_extra )        FT_MEM_COPY( target->base.extra_points, source->base.extra_points,                     num_points * sizeof ( FT_Vector ) );      out->n_points   = (short)num_points;      out->n_contours = (short)num_contours;      FT_GlyphLoader_Adjust_Points( target );    }    return error;  }/* END */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品久久人人爱蜜臀| 精品88久久久久88久久久| 欧美日韩一区二区三区高清| 精品久久久久久久久久久久久久久 | 国产成人精品1024| 欧美精三区欧美精三区 | 欧美大胆人体bbbb| 一区二区视频免费在线观看| 国产精品自在欧美一区| 欧美一区二区在线免费播放| 一区二区三区色| 不卡的av电影在线观看| 日韩女优av电影在线观看| 久久久影视传媒| 日韩伦理免费电影| 国内精品视频一区二区三区八戒| 91丨九色丨黑人外教| 精品国产区一区| 一区二区在线观看视频 | 成人激情小说乱人伦| 5月丁香婷婷综合| 亚洲欧洲av一区二区三区久久| 日韩精彩视频在线观看| 91在线播放网址| 精品久久久久久综合日本欧美| 亚洲综合一区二区精品导航| 国产成a人亚洲精品| 欧美日本一道本在线视频| 亚洲欧美另类在线| 粉嫩一区二区三区性色av| 91精品国产手机| 亚洲国产精品久久艾草纯爱| 成人国产在线观看| 久久久精品国产99久久精品芒果 | 亚洲一区二区三区视频在线播放| 国产不卡视频一区二区三区| 精品日产卡一卡二卡麻豆| 日韩在线一区二区| 91成人看片片| 亚洲美女屁股眼交| 91亚洲精品一区二区乱码| 日本一区二区三区在线不卡| 国产精品一区二区视频| 日韩欧美不卡在线观看视频| 丝袜诱惑亚洲看片| 91蝌蚪国产九色| 国产乱人伦精品一区二区在线观看 | 一区二区三区免费网站| 久久精品国产精品亚洲综合| 日韩欧美资源站| 日日夜夜精品视频免费| 欧美猛男gaygay网站| 亚洲最大成人综合| 欧美亚洲动漫精品| 亚洲高清视频中文字幕| 欧美日韩精品福利| 国产日韩欧美亚洲| 婷婷成人激情在线网| 激情六月婷婷久久| 欧美一级免费观看| 26uuu亚洲| 99综合电影在线视频| 国产精品久99| 欧美精品aⅴ在线视频| 日韩av在线免费观看不卡| 337p亚洲精品色噜噜噜| 从欧美一区二区三区| 国产精品二区一区二区aⅴ污介绍| 在线精品视频免费观看| 亚洲国产视频网站| 91 com成人网| 国产精品一区一区三区| 日韩精品中文字幕在线不卡尤物| 麻豆久久久久久| 久久综合色播五月| av成人老司机| 亚洲风情在线资源站| 精品欧美一区二区久久| 成人福利视频在线| 亚洲第一成年网| 久久一日本道色综合| av一区二区三区在线| 亚洲香肠在线观看| 精品日韩欧美在线| 91香蕉视频在线| 日一区二区三区| 日韩亚洲欧美一区二区三区| 亚洲电影欧美电影有声小说| 久久精品欧美一区二区三区麻豆| 国产精品一二三四区| 亚洲一区二区不卡免费| 精品播放一区二区| 色系网站成人免费| 久久成人18免费观看| 中文字幕一区视频| 欧美亚洲综合久久| 寂寞少妇一区二区三区| 中文字幕亚洲一区二区av在线 | 欧美另类一区二区三区| 国产激情一区二区三区四区| 婷婷开心久久网| 亚洲欧洲另类国产综合| 日韩美一区二区三区| 91视频91自| 国产精品自在欧美一区| 亚洲免费av高清| 日韩欧美国产一区二区在线播放 | 国产精品久久久久国产精品日日| 欧美日韩精品三区| 99re这里只有精品6| 精品一区二区三区蜜桃| 亚洲少妇最新在线视频| 欧美r级电影在线观看| 在线观看中文字幕不卡| 国产成人av电影在线| 日本中文字幕一区二区视频| 亚洲精品高清在线| 亚洲视频一二三区| 国产日韩一级二级三级| 精品va天堂亚洲国产| 51久久夜色精品国产麻豆| 91日韩精品一区| 成人永久免费视频| 极品少妇xxxx精品少妇偷拍 | 中文字幕不卡在线观看| 欧美性感一区二区三区| 欧美性大战久久久久久久| av一区二区三区| 成人美女视频在线看| 国产高清在线精品| 国产精品一区二区在线看| 国内欧美视频一区二区| 国产一区二区视频在线| 激情文学综合插| 国内外精品视频| 国内精品久久久久影院色| 久久福利视频一区二区| 精品在线一区二区三区| 国产美女精品在线| 国产精品一区三区| 成年人国产精品| 高清久久久久久| 国产乱人伦偷精品视频不卡| 91精品福利在线一区二区三区 | 国产乱码精品一品二品| 国产河南妇女毛片精品久久久| 国产成人免费视频网站| bt7086福利一区国产| 在线观看免费一区| 欧美肥胖老妇做爰| 日韩一级黄色片| 久久一区二区三区四区| 国产精品久久三区| 亚洲欧美色图小说| 日韩中文字幕1| 国产精品中文字幕欧美| 波多野结衣中文一区| 在线观看www91| 欧洲色大大久久| 欧美精品日韩一本| 欧美一级欧美三级| 悠悠色在线精品| 麻豆成人久久精品二区三区红| 国内精品久久久久影院薰衣草| a在线欧美一区| 欧美福利一区二区| 久久精品视频免费| 亚洲成人先锋电影| 国产精品一区专区| 欧美性做爰猛烈叫床潮| 久久综合九色综合欧美就去吻| 国产精品午夜在线| 午夜精品成人在线| 国产精品夜夜爽| 欧美日韩久久一区二区| 精品日韩一区二区| 亚洲综合视频网| 国产99一区视频免费| 91久久久免费一区二区| 欧美伊人久久久久久午夜久久久久| 欧美视频在线一区二区三区| 欧美一区午夜视频在线观看| 久久久99久久| 日韩和欧美一区二区三区| www.视频一区| 亚洲精品一线二线三线| 一区二区三区国产精华| 国产福利91精品| 91麻豆精品国产综合久久久久久| 国产精品五月天| 亚洲va在线va天堂| 国产福利一区二区三区视频在线| 欧美日韩亚洲不卡| 亚洲人吸女人奶水| 国产很黄免费观看久久| 日韩午夜小视频| 婷婷六月综合亚洲| 欧美专区日韩专区| 国产精品三级电影| 国产一区二区在线观看免费|