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

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

?? t1load.c

?? a very goog book
?? C
?? 第 1 頁 / 共 4 頁
字號:
/***************************************************************************//*                                                                         *//*  t1load.c                                                               *//*                                                                         *//*    Type 1 font loader (body).                                           *//*                                                                         *//*  Copyright 1996-2001, 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.                                        *//*                                                                         *//***************************************************************************/  /*************************************************************************/  /*                                                                       */  /* This is the new and improved Type 1 data loader for FreeType 2.  The  */  /* old loader has several problems: it is slow, complex, difficult to    */  /* maintain, and contains incredible hacks to make it accept some        */  /* ill-formed Type 1 fonts without hiccup-ing.  Moreover, about 5% of    */  /* the Type 1 fonts on my machine still aren't loaded correctly by it.   */  /*                                                                       */  /* This version is much simpler, much faster and also easier to read and */  /* maintain by a great order of magnitude.  The idea behind it is to     */  /* _not_ try to read the Type 1 token stream with a state machine (i.e.  */  /* a Postscript-like interpreter) but rather to perform simple pattern   */  /* matching.                                                             */  /*                                                                       */  /* Indeed, nearly all data definitions follow a simple pattern like      */  /*                                                                       */  /*  ... /Field <data> ...                                                */  /*                                                                       */  /* where <data> can be a number, a boolean, a string, or an array of     */  /* numbers.  There are a few exceptions, namely the encoding, font name, */  /* charstrings, and subrs; they are handled with a special pattern       */  /* matching routine.                                                     */  /*                                                                       */  /* All other common cases are handled very simply.  The matching rules   */  /* are defined in the file `t1tokens.h' through the use of several       */  /* macros calls PARSE_XXX.                                               */  /*                                                                       */  /* This file is included twice here; the first time to generate parsing  */  /* callback functions, the second to generate a table of keywords (with  */  /* pointers to the associated callback).                                 */  /*                                                                       */  /* The function `parse_dict' simply scans *linearly* a given dictionary  */  /* (either the top-level or private one) and calls the appropriate       */  /* callback when it encounters an immediate keyword.                     */  /*                                                                       */  /* This is by far the fastest way one can find to parse and read all     */  /* data.                                                                 */  /*                                                                       */  /* This led to tremendous code size reduction.  Note that later, the     */  /* glyph loader will also be _greatly_ simplified, and the automatic     */  /* hinter will replace the clumsy `t1hinter'.                            */  /*                                                                       */  /*************************************************************************/#include <ft2build.h>#include FT_INTERNAL_DEBUG_H#include FT_CONFIG_CONFIG_H#include FT_MULTIPLE_MASTERS_H#include FT_INTERNAL_TYPE1_TYPES_H#include "t1load.h"#include "t1errors.h"  /*************************************************************************/  /*                                                                       */  /* The macro FT_COMPONENT is used in trace mode.  It is an implicit      */  /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log  */  /* messages during execution.                                            */  /*                                                                       */#undef  FT_COMPONENT#define FT_COMPONENT  trace_t1load#ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT  /*************************************************************************/  /*************************************************************************/  /*****                                                               *****/  /*****                    MULTIPLE MASTERS SUPPORT                   *****/  /*****                                                               *****/  /*************************************************************************/  /*************************************************************************/  static FT_Error  t1_allocate_blend( T1_Face  face,                     FT_UInt  num_designs,                     FT_UInt  num_axis )  {    PS_Blend   blend;    FT_Memory  memory = face->root.memory;    FT_Error   error  = 0;    blend = face->blend;    if ( !blend )    {      if ( FT_NEW( blend ) )        goto Exit;      face->blend = blend;    }    /* allocate design data if needed */    if ( num_designs > 0 )    {      if ( blend->num_designs == 0 )      {        FT_UInt  nn;        /* allocate the blend `private' and `font_info' dictionaries */        if ( FT_NEW_ARRAY( blend->font_infos[1], num_designs     ) ||             FT_NEW_ARRAY( blend->privates[1], num_designs       ) ||             FT_NEW_ARRAY( blend->weight_vector, num_designs * 2 ) )          goto Exit;        blend->default_weight_vector = blend->weight_vector + num_designs;        blend->font_infos[0] = &face->type1.font_info;        blend->privates  [0] = &face->type1.private_dict;        for ( nn = 2; nn <= num_designs; nn++ )        {          blend->privates[nn]   = blend->privates  [nn - 1] + 1;          blend->font_infos[nn] = blend->font_infos[nn - 1] + 1;        }        blend->num_designs   = num_designs;      }      else if ( blend->num_designs != num_designs )        goto Fail;    }    /* allocate axis data if needed */    if ( num_axis > 0 )    {      if ( blend->num_axis != 0 && blend->num_axis != num_axis )        goto Fail;      blend->num_axis = num_axis;    }    /* allocate the blend design pos table if needed */    num_designs = blend->num_designs;    num_axis    = blend->num_axis;    if ( num_designs && num_axis && blend->design_pos[0] == 0 )    {      FT_UInt  n;      if ( FT_NEW_ARRAY( blend->design_pos[0], num_designs * num_axis ) )        goto Exit;      for ( n = 1; n < num_designs; n++ )        blend->design_pos[n] = blend->design_pos[0] + num_axis * n;    }  Exit:    return error;  Fail:    error = -1;    goto Exit;  }  FT_LOCAL_DEF( FT_Error )  T1_Get_Multi_Master( T1_Face           face,                       FT_Multi_Master*  master )  {    PS_Blend  blend = face->blend;    FT_UInt   n;    FT_Error  error;    error = T1_Err_Invalid_Argument;    if ( blend )    {      master->num_axis    = blend->num_axis;      master->num_designs = blend->num_designs;      for ( n = 0; n < blend->num_axis; n++ )      {        FT_MM_Axis*   axis = master->axis + n;        PS_DesignMap  map = blend->design_map + n;        axis->name    = blend->axis_names[n];        axis->minimum = map->design_points[0];        axis->maximum = map->design_points[map->num_points - 1];      }      error = 0;    }    return error;  }  FT_LOCAL_DEF( FT_Error )  T1_Set_MM_Blend( T1_Face    face,                   FT_UInt    num_coords,                   FT_Fixed*  coords )  {    PS_Blend  blend = face->blend;    FT_Error  error;    FT_UInt   n, m;    error = T1_Err_Invalid_Argument;    if ( blend && blend->num_axis == num_coords )    {      /* recompute the weight vector from the blend coordinates */      error = T1_Err_Ok;      for ( n = 0; n < blend->num_designs; n++ )      {        FT_Fixed  result = 0x10000L;  /* 1.0 fixed */        for ( m = 0; m < blend->num_axis; m++ )        {          FT_Fixed  factor;          /* get current blend axis position */          factor = coords[m];          if ( factor < 0 )        factor = 0;          if ( factor > 0x10000L ) factor = 0x10000L;          if ( ( n & ( 1 << m ) ) == 0 )            factor = 0x10000L - factor;          result = FT_MulFix( result, factor );        }        blend->weight_vector[n] = result;      }      error = T1_Err_Ok;    }    return error;  }  FT_LOCAL_DEF( FT_Error )  T1_Set_MM_Design( T1_Face   face,                    FT_UInt   num_coords,                    FT_Long*  coords )  {    PS_Blend  blend = face->blend;    FT_Error  error;    FT_UInt   n, p;    error = T1_Err_Invalid_Argument;    if ( blend && blend->num_axis == num_coords )    {      /* compute the blend coordinates through the blend design map */      FT_Fixed  final_blends[T1_MAX_MM_DESIGNS];      for ( n = 0; n < blend->num_axis; n++ )      {        FT_Long       design  = coords[n];        FT_Fixed      the_blend;        PS_DesignMap  map     = blend->design_map + n;        FT_Fixed*     designs = map->design_points;        FT_Fixed*     blends  = map->blend_points;        FT_Int        before  = -1, after = -1;        for ( p = 0; p < (FT_UInt)map->num_points; p++ )        {          FT_Fixed  p_design = designs[p];          /* exact match ? */          if ( design == p_design )          {            the_blend = blends[p];            goto Found;          }          if ( design < p_design )          {            after = p;            break;          }          before = p;        }        /* now, interpolate if needed */        if ( before < 0 )          the_blend = blends[0];        else if ( after < 0 )          the_blend = blends[map->num_points - 1];        else          the_blend = FT_MulDiv( design         - designs[before],                                 blends [after] - blends [before],                                 designs[after] - designs[before] );      Found:        final_blends[n] = the_blend;      }      error = T1_Set_MM_Blend( face, num_coords, final_blends );    }    return error;  }  FT_LOCAL_DEF( void )  T1_Done_Blend( T1_Face  face )  {    FT_Memory  memory = face->root.memory;    PS_Blend   blend  = face->blend;    if ( blend )    {      FT_UInt  num_designs = blend->num_designs;      FT_UInt  num_axis    = blend->num_axis;      FT_UInt  n;      /* release design pos table */      FT_FREE( blend->design_pos[0] );      for ( n = 1; n < num_designs; n++ )        blend->design_pos[n] = 0;      /* release blend `private' and `font info' dictionaries */      FT_FREE( blend->privates[1] );      FT_FREE( blend->font_infos[1] );      for ( n = 0; n < num_designs; n++ )      {        blend->privates  [n] = 0;        blend->font_infos[n] = 0;      }      /* release weight vectors */      FT_FREE( blend->weight_vector );      blend->default_weight_vector = 0;      /* release axis names */      for ( n = 0; n < num_axis; n++ )        FT_FREE( blend->axis_names[n] );      /* release design map */      for ( n = 0; n < num_axis; n++ )      {        PS_DesignMap  dmap = blend->design_map + n;        FT_FREE( dmap->design_points );        dmap->num_points = 0;      }      FT_FREE( face->blend );    }  }  static void  parse_blend_axis_types( T1_Face    face,                          T1_Loader  loader )  {    T1_TokenRec  axis_tokens[ T1_MAX_MM_AXIS ];    FT_Int       n, num_axis;    FT_Error     error = 0;    PS_Blend     blend;    FT_Memory    memory;    /* take an array of objects */    T1_ToTokenArray( &loader->parser, axis_tokens,                     T1_MAX_MM_AXIS, &num_axis );    if ( num_axis <= 0 || num_axis > T1_MAX_MM_AXIS )    {      FT_ERROR(( "parse_blend_axis_types: incorrect number of axes: %d\n",                 num_axis ));      error = T1_Err_Invalid_File_Format;      goto Exit;    }    /* allocate blend if necessary */    error = t1_allocate_blend( face, 0, (FT_UInt)num_axis );    if ( error )      goto Exit;    blend  = face->blend;    memory = face->root.memory;    /* each token is an immediate containing the name of the axis */    for ( n = 0; n < num_axis; n++ )    {      T1_Token  token = axis_tokens + n;      FT_Byte*  name;      FT_Int    len;      /* skip first slash, if any */      if ( token->start[0] == '/' )        token->start++;      len = (FT_Int)( token->limit - token->start );      if ( len <= 0 )      {        error = T1_Err_Invalid_File_Format;        goto Exit;      }      if ( FT_ALLOC( blend->axis_names[n], len + 1 ) )        goto Exit;      name = (FT_Byte*)blend->axis_names[n];      FT_MEM_COPY( name, token->start, len );      name[len] = 0;    }  Exit:    loader->parser.root.error = error;  }  static void

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产综合一区二区| 欧美无砖专区一中文字| 91老师国产黑色丝袜在线| 欧美日韩aaaaaa| 久久久夜色精品亚洲| 一区二区在线观看不卡| 国产一区欧美二区| 欧美日韩一区 二区 三区 久久精品| 欧美大片免费久久精品三p| 国产精品国产三级国产aⅴ原创| 日本va欧美va精品发布| 97成人超碰视| 久久人人超碰精品| 麻豆freexxxx性91精品| 欧美影片第一页| 亚洲精品国产无天堂网2021| 国产精品一级二级三级| 日韩欧美在线影院| 天天操天天干天天综合网| 色综合久久久久综合体桃花网| 久久婷婷色综合| 国产在线一区二区综合免费视频| 欧美精品自拍偷拍| 一区二区三区在线播| av不卡免费电影| 国产精品美女www爽爽爽| 国产成人午夜精品影院观看视频 | 欧美日韩激情一区二区| 中文字幕永久在线不卡| 岛国一区二区在线观看| 久久久久久99精品| 国内精品免费**视频| 亚洲精品在线观看网站| 久久精品免费看| 日韩欧美不卡在线观看视频| 日本在线不卡一区| 欧美一区二区三区视频免费播放| 三级久久三级久久久| 在线观看区一区二| 无吗不卡中文字幕| 51午夜精品国产| 蜜臀精品一区二区三区在线观看| 91精品在线免费| 看电影不卡的网站| 久久综合色婷婷| 成人av在线影院| 亚洲色图色小说| 欧美日韩激情一区二区三区| 日韩精品国产精品| 26uuu国产日韩综合| 丰满亚洲少妇av| 一区二区三区在线影院| 欧美精品久久天天躁| 蜜桃av噜噜一区二区三区小说| 久久综合色综合88| 99久久综合精品| 亚洲成人av电影| 精品蜜桃在线看| 91视频免费播放| 日韩二区三区在线观看| 国产网站一区二区| 在线看国产一区| 老司机精品视频线观看86| 国产性天天综合网| 91国偷自产一区二区三区成为亚洲经典 | 99精品偷自拍| 日韩主播视频在线| 久久久久99精品国产片| 一本色道久久综合亚洲精品按摩| 水野朝阳av一区二区三区| 精品成人佐山爱一区二区| 不卡一卡二卡三乱码免费网站| 亚洲一区二区三区视频在线 | 亚洲成人av福利| 国产日韩精品一区二区三区| 色综合中文字幕国产 | 成人av资源在线观看| 亚洲一区二区欧美日韩| 国产欧美一区二区三区网站 | 国产在线精品一区二区不卡了| 中文字幕av一区二区三区| 欧美片在线播放| 北岛玲一区二区三区四区| 看电影不卡的网站| 亚洲综合视频在线观看| 国产清纯在线一区二区www| 欧美在线一二三| 国产69精品久久99不卡| 蜜臀国产一区二区三区在线播放 | 91在线视频免费91| 久久国产精品第一页| 亚洲第四色夜色| 一区视频在线播放| 久久老女人爱爱| 日韩欧美在线123| 91久久精品国产91性色tv| 国产精品一区二区在线观看不卡| 亚洲成人综合在线| 尤物视频一区二区| 亚洲欧美激情视频在线观看一区二区三区 | 777a∨成人精品桃花网| 97国产一区二区| 不卡的av电影在线观看| 国产一区二区三区在线观看免费视频| 午夜精品久久一牛影视| 一区二区激情视频| 亚洲三级在线播放| 亚洲女人的天堂| 日韩一区日韩二区| 国产精品婷婷午夜在线观看| 久久理论电影网| 久久久精品影视| 久久综合中文字幕| 国产亚洲一二三区| 久久久午夜精品理论片中文字幕| 日韩一卡二卡三卡国产欧美| 555www色欧美视频| 日韩欧美视频在线| 欧美电影免费观看高清完整版在线 | 久久综合一区二区| 精品免费视频一区二区| 久久综合色之久久综合| 久久久久久久久久久久久久久99| 2021国产精品久久精品| 久久亚洲综合色| 欧美激情一区二区三区不卡| 久久久久免费观看| **网站欧美大片在线观看| 亚洲色图欧美激情| 午夜国产精品一区| 日韩电影免费一区| 国产资源精品在线观看| 粉嫩aⅴ一区二区三区四区 | 免费在线观看日韩欧美| 日本伊人色综合网| 久久99精品久久久久久国产越南| 国产永久精品大片wwwapp| 岛国精品在线播放| 日本高清不卡视频| 欧美一区二区三区四区五区| 亚洲精品一区二区三区福利| 国产网站一区二区| 一区二区三区波多野结衣在线观看| 亚洲国产精品久久久久婷婷884| 日韩av一区二区三区| 国产成人自拍网| 色菇凉天天综合网| 日韩欧美在线123| 一区视频在线播放| 秋霞成人午夜伦在线观看| 国产高清不卡一区二区| 日本久久电影网| 欧美成人aa大片| 自拍偷在线精品自拍偷无码专区| 午夜精品福利一区二区三区av| 麻豆一区二区三区| www.亚洲精品| 日韩欧美国产麻豆| 自拍av一区二区三区| 男女性色大片免费观看一区二区 | 成人av网站免费| 欧美日韩国产综合一区二区三区 | 中文欧美字幕免费| 亚洲成人1区2区| 成人免费精品视频| 日韩三级.com| 亚洲中国最大av网站| 国产成人自拍在线| 制服丝袜激情欧洲亚洲| 亚洲欧洲三级电影| 精品一区精品二区高清| 欧美性大战久久| 国产精品美女久久久久久久久 | 欧美三级日韩在线| 92精品国产成人观看免费| 在线播放国产精品二区一二区四区| 国产欧美一区二区三区在线看蜜臀| 亚洲一区二区三区四区在线| 丰满放荡岳乱妇91ww| 日韩女优毛片在线| 欧美剧情片在线观看| 亚洲精品大片www| 欧美中文字幕一区二区三区| 亚洲一二三级电影| 7777精品伊人久久久大香线蕉的 | 2021中文字幕一区亚洲| 国产久卡久卡久卡久卡视频精品| xf在线a精品一区二区视频网站| 国产精品伊人色| 亚洲欧美一区二区视频| 欧美亚一区二区| 秋霞电影网一区二区| 久久蜜桃av一区二区天堂| 不卡的看片网站| 亚洲一级在线观看| 日韩午夜在线播放| 国产精品一品视频| 亚洲精品中文在线| 91精品国产综合久久香蕉麻豆 | 亚洲一区二区偷拍精品|