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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? t42parse.c

?? QT 開發(fā)環(huán)境里面一個很重要的文件
?? C
?? 第 1 頁 / 共 3 頁
字號:
/***************************************************************************//*                                                                         *//*  t42parse.c                                                             *//*                                                                         *//*    Type 42 font parser (body).                                          *//*                                                                         *//*  Copyright 2002, 2003, 2004, 2005, 2006 by Roberto Alameda.             *//*                                                                         *//*  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 "t42parse.h"#include "t42error.h"#include FT_INTERNAL_DEBUG_H#include FT_INTERNAL_STREAM_H#include FT_LIST_H#include FT_INTERNAL_POSTSCRIPT_AUX_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_t42  static void  t42_parse_font_matrix( T42_Face    face,                         T42_Loader  loader );  static void  t42_parse_encoding( T42_Face    face,                      T42_Loader  loader );  static void  t42_parse_charstrings( T42_Face    face,                         T42_Loader  loader );  static void  t42_parse_sfnts( T42_Face    face,                   T42_Loader  loader );  static const  T1_FieldRec  t42_keywords[] = {#undef  FT_STRUCTURE#define FT_STRUCTURE  T1_FontInfo#undef  T1CODE#define T1CODE        T1_FIELD_LOCATION_FONT_INFO    T1_FIELD_STRING( "version",            version )    T1_FIELD_STRING( "Notice",             notice )    T1_FIELD_STRING( "FullName",           full_name )    T1_FIELD_STRING( "FamilyName",         family_name )    T1_FIELD_STRING( "Weight",             weight )    T1_FIELD_NUM   ( "ItalicAngle",        italic_angle )    T1_FIELD_BOOL  ( "isFixedPitch",       is_fixed_pitch )    T1_FIELD_NUM   ( "UnderlinePosition",  underline_position )    T1_FIELD_NUM   ( "UnderlineThickness", underline_thickness )#undef  FT_STRUCTURE#define FT_STRUCTURE  T1_FontRec#undef  T1CODE#define T1CODE        T1_FIELD_LOCATION_FONT_DICT    T1_FIELD_KEY  ( "FontName",    font_name )    T1_FIELD_NUM  ( "PaintType",   paint_type )    T1_FIELD_NUM  ( "FontType",    font_type )    T1_FIELD_FIXED( "StrokeWidth", stroke_width )#undef  FT_STRUCTURE#define FT_STRUCTURE  FT_BBox#undef  T1CODE#define T1CODE        T1_FIELD_LOCATION_BBOX    T1_FIELD_BBOX("FontBBox", xMin )    T1_FIELD_CALLBACK( "FontMatrix",  t42_parse_font_matrix )    T1_FIELD_CALLBACK( "Encoding",    t42_parse_encoding )    T1_FIELD_CALLBACK( "CharStrings", t42_parse_charstrings )    T1_FIELD_CALLBACK( "sfnts",       t42_parse_sfnts )    { 0, T1_FIELD_LOCATION_CID_INFO, T1_FIELD_TYPE_NONE, 0, 0, 0, 0, 0 }  };#define T1_Add_Table( p, i, o, l )  (p)->funcs.add( (p), i, o, l )#define T1_Done_Table( p )          \          do                        \          {                         \            if ( (p)->funcs.done )  \              (p)->funcs.done( p ); \          } while ( 0 )#define T1_Release_Table( p )          \          do                           \          {                            \            if ( (p)->funcs.release )  \              (p)->funcs.release( p ); \          } while ( 0 )#define T1_Skip_Spaces( p )    (p)->root.funcs.skip_spaces( &(p)->root )#define T1_Skip_PS_Token( p )  (p)->root.funcs.skip_PS_token( &(p)->root )#define T1_ToInt( p )                          \          (p)->root.funcs.to_int( &(p)->root )#define T1_ToBytes( p, b, m, n, d )                          \          (p)->root.funcs.to_bytes( &(p)->root, b, m, n, d )#define T1_ToFixedArray( p, m, f, t )                           \          (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )#define T1_ToToken( p, t )                          \          (p)->root.funcs.to_token( &(p)->root, t )#define T1_Load_Field( p, f, o, m, pf )                         \          (p)->root.funcs.load_field( &(p)->root, f, o, m, pf )#define T1_Load_Field_Table( p, f, o, m, pf )                         \          (p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )  /********************* Parsing Functions ******************/  FT_LOCAL_DEF( FT_Error )  t42_parser_init( T42_Parser     parser,                   FT_Stream      stream,                   FT_Memory      memory,                   PSAux_Service  psaux )  {    FT_Error  error = T42_Err_Ok;    FT_Long   size;    psaux->ps_parser_funcs->init( &parser->root, 0, 0, memory );    parser->stream    = stream;    parser->base_len  = 0;    parser->base_dict = 0;    parser->in_memory = 0;    /*******************************************************************/    /*                                                                 */    /* Here a short summary of what is going on:                       */    /*                                                                 */    /*   When creating a new Type 42 parser, we try to locate and load */    /*   the base dictionary, loading the whole font into memory.      */    /*                                                                 */    /*   When `loading' the base dictionary, we only set up pointers   */    /*   in the case of a memory-based stream.  Otherwise, we allocate */    /*   and load the base dictionary in it.                           */    /*                                                                 */    /*   parser->in_memory is set if we have a memory stream.          */    /*                                                                 */    if ( FT_STREAM_SEEK( 0L ) ||         FT_FRAME_ENTER( 17 ) )      goto Exit;    if ( ft_memcmp( stream->cursor, "%!PS-TrueTypeFont", 17 ) != 0 )    {      FT_TRACE2(( "not a Type42 font\n" ));      error = T42_Err_Unknown_File_Format;    }    FT_FRAME_EXIT();    if ( error || FT_STREAM_SEEK( 0 ) )      goto Exit;    size = stream->size;    /* now, try to load `size' bytes of the `base' dictionary we */    /* found previously                                          */    /* if it is a memory-based resource, set up pointers */    if ( !stream->read )    {      parser->base_dict = (FT_Byte*)stream->base + stream->pos;      parser->base_len  = size;      parser->in_memory = 1;      /* check that the `size' field is valid */      if ( FT_STREAM_SKIP( size ) )        goto Exit;    }    else    {      /* read segment in memory */      if ( FT_ALLOC( parser->base_dict, size )       ||           FT_STREAM_READ( parser->base_dict, size ) )        goto Exit;      parser->base_len = size;    }    parser->root.base   = parser->base_dict;    parser->root.cursor = parser->base_dict;    parser->root.limit  = parser->root.cursor + parser->base_len;  Exit:    if ( error && !parser->in_memory )      FT_FREE( parser->base_dict );    return error;  }  FT_LOCAL_DEF( void )  t42_parser_done( T42_Parser  parser )  {    FT_Memory  memory = parser->root.memory;    /* free the base dictionary only when we have a disk stream */    if ( !parser->in_memory )      FT_FREE( parser->base_dict );    parser->root.funcs.done( &parser->root );  }  static int  t42_is_space( FT_Byte  c )  {    return ( c == ' '  || c == '\t'              ||             c == '\r' || c == '\n' || c == '\f' ||             c == '\0'                           );  }  static void  t42_parse_font_matrix( T42_Face    face,                         T42_Loader  loader )  {    T42_Parser  parser = &loader->parser;    FT_Matrix*  matrix = &face->type1.font_matrix;    FT_Vector*  offset = &face->type1.font_offset;    FT_Face     root   = (FT_Face)&face->root;    FT_Fixed    temp[6];    FT_Fixed    temp_scale;    (void)T1_ToFixedArray( parser, 6, temp, 3 );    temp_scale = FT_ABS( temp[3] );    /* Set Units per EM based on FontMatrix values.  We set the value to */    /* 1000 / temp_scale, because temp_scale was already multiplied by   */    /* 1000 (in t1_tofixed, from psobjs.c).                              */    root->units_per_EM = (FT_UShort)( FT_DivFix( 1000 * 0x10000L,                                                 temp_scale ) >> 16 );    /* we need to scale the values by 1.0/temp_scale */    if ( temp_scale != 0x10000L ) {      temp[0] = FT_DivFix( temp[0], temp_scale );      temp[1] = FT_DivFix( temp[1], temp_scale );      temp[2] = FT_DivFix( temp[2], temp_scale );      temp[4] = FT_DivFix( temp[4], temp_scale );      temp[5] = FT_DivFix( temp[5], temp_scale );      temp[3] = 0x10000L;    }    matrix->xx = temp[0];    matrix->yx = temp[1];    matrix->xy = temp[2];    matrix->yy = temp[3];    /* note that the offsets must be expressed in integer font units */    offset->x = temp[4] >> 16;    offset->y = temp[5] >> 16;  }  static void  t42_parse_encoding( T42_Face    face,                      T42_Loader  loader )  {    T42_Parser  parser = &loader->parser;    FT_Byte*    cur;    FT_Byte*    limit  = parser->root.limit;    PSAux_Service  psaux  = (PSAux_Service)face->psaux;    T1_Skip_Spaces( parser );    cur = parser->root.cursor;    if ( cur >= limit )    {      FT_ERROR(( "t42_parse_encoding: out of bounds!\n" ));      parser->root.error = T42_Err_Invalid_File_Format;      return;    }    /* if we have a number or `[', the encoding is an array, */    /* and we must load it now                               */    if ( ft_isdigit( *cur ) || *cur == '[' )    {      T1_Encoding  encode          = &face->type1.encoding;      FT_UInt      count, n;      PS_Table     char_table      = &loader->encoding_table;      FT_Memory    memory          = parser->root.memory;      FT_Error     error;      FT_Bool      only_immediates = 0;      /* read the number of entries in the encoding; should be 256 */      if ( *cur == '[' )      {        count           = 256;        only_immediates = 1;        parser->root.cursor++;      }      else        count = (FT_UInt)T1_ToInt( parser );      T1_Skip_Spaces( parser );      if ( parser->root.cursor >= limit )        return;      /* we use a T1_Table to store our charnames */      loader->num_chars = encode->num_chars = count;      if ( FT_NEW_ARRAY( encode->char_index, count )     ||           FT_NEW_ARRAY( encode->char_name,  count )     ||           FT_SET_ERROR( psaux->ps_table_funcs->init(                           char_table, count, memory ) ) )      {        parser->root.error = error;        return;      }      /* We need to `zero' out encoding_table.elements */      for ( n = 0; n < count; n++ )      {        char*  notdef = (char *)".notdef";        T1_Add_Table( char_table, n, notdef, 8 );      }      /* Now we need to read records of the form                */      /*                                                        */      /*   ... charcode /charname ...                           */      /*                                                        */      /* for each entry in our table.                           */      /*                                                        */      /* We simply look for a number followed by an immediate   */      /* name.  Note that this ignores correctly the sequence   */      /* that is often seen in type42 fonts:                    */      /*                                                        */      /*   0 1 255 { 1 index exch /.notdef put } for dup        */      /*                                                        */      /* used to clean the encoding array before anything else. */      /*                                                        */      /* Alternatively, if the array is directly given as       */      /*                                                        */      /*   /Encoding [ ... ]                                    */      /*                                                        */      /* we only read immediates.                               */      n = 0;      T1_Skip_Spaces( parser );      while ( parser->root.cursor < limit )      {        cur = parser->root.cursor;        /* we stop when we encounter `def' or `]' */        if ( *cur == 'd' && cur + 3 < limit )        {          if ( cur[1] == 'e'          &&               cur[2] == 'f'          &&               t42_is_space( cur[3] ) )

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人精品免费网站| 日韩一区中文字幕| 毛片av中文字幕一区二区| 欧美一区二区在线看| 青青草视频一区| 久久久国产精品午夜一区ai换脸| 国产一区二区三区免费看| 国产欧美日韩一区二区三区在线观看| 国产精品一区二区果冻传媒| 国产精品午夜春色av| 91免费视频网址| 日日夜夜一区二区| 日韩一级免费观看| 成人免费av资源| 亚洲黄色免费网站| 日韩欧美一区在线| 99精品在线免费| 性感美女久久精品| 久久精品视频在线看| 国产精品夜夜嗨| 一区二区三区日韩精品| 91精品综合久久久久久| 国产精品香蕉一区二区三区| 亚洲裸体xxx| 777亚洲妇女| 成人免费毛片app| 亚洲在线中文字幕| 欧美精品一区视频| 91行情网站电视在线观看高清版| 亚洲一区二区三区自拍| 精品久久久久久无| 一本色道久久综合狠狠躁的推荐| 麻豆国产欧美一区二区三区| 欧美国产日韩精品免费观看| 欧美欧美午夜aⅴ在线观看| 国产精品夜夜爽| 日韩精品久久久久久| 欧美国产乱子伦| 日韩欧美在线不卡| 欧美日韩一区二区三区高清| 国产麻豆视频一区二区| 日韩在线一区二区| 自拍av一区二区三区| 精品久久久久99| 欧美亚洲国产一区在线观看网站| 成人av免费在线| 日韩精品高清不卡| 中文字幕一区二区三区在线不卡 | 亚洲欧美在线视频| 91精品国产麻豆| 91久久精品网| 国产a久久麻豆| 日韩精品乱码免费| 亚洲精品视频观看| 亚洲国产成人一区二区三区| 日韩视频一区二区在线观看| 91国产精品成人| 91在线国产福利| 一本一道综合狠狠老| 国产精品影视天天线| 亚洲va欧美va人人爽| 综合亚洲深深色噜噜狠狠网站| 久久嫩草精品久久久精品| 日韩欧美在线123| 欧美日韩亚洲综合一区二区三区| 成人动漫一区二区在线| 国产mv日韩mv欧美| 高清免费成人av| 国产精品综合在线视频| 国产美女在线观看一区| 精品一区二区三区在线观看国产 | 亚洲人成7777| 亚洲免费伊人电影| 亚洲精品免费在线观看| 国产日产亚洲精品系列| 久久久99精品久久| 日本一区二区三区dvd视频在线| 日韩欧美区一区二| 精品福利av导航| 久久免费偷拍视频| 欧美大度的电影原声| 欧美一级久久久久久久大片| 日韩写真欧美这视频| 日韩美女在线视频 | 欧美日韩免费一区二区三区| 欧美日韩你懂的| 3d动漫精品啪啪| 欧美mv日韩mv国产网站app| 精品欧美乱码久久久久久| 欧美va亚洲va香蕉在线| 中文一区在线播放| 亚洲欧美另类小说视频| 亚洲精品美国一| 日韩成人午夜精品| 美日韩一区二区| 粉嫩高潮美女一区二区三区| 91在线精品一区二区三区| 欧美在线短视频| 欧美一级在线视频| 久久中文娱乐网| 亚洲视频在线观看一区| 午夜精品久久久久影视| 美女一区二区视频| 成人av免费在线| 色婷婷国产精品| 日韩欧美精品在线| 国产女人18毛片水真多成人如厕| 亚洲免费观看高清完整版在线观看| 亚洲电影视频在线| 国产乱码精品一区二区三区忘忧草| www.久久久久久久久| 欧美在线视频你懂得| 精品国产免费视频| 国产精品不卡在线| 青青草一区二区三区| eeuss鲁片一区二区三区| 欧美精品xxxxbbbb| 国产欧美一区二区三区鸳鸯浴| 一级日本不卡的影视| 精品无人码麻豆乱码1区2区| www.日本不卡| 欧美大度的电影原声| 亚洲欧美偷拍卡通变态| 久久疯狂做爰流白浆xx| 日本韩国一区二区三区| 久久久777精品电影网影网 | 亚洲成人av福利| 蜜臂av日日欢夜夜爽一区| 97se亚洲国产综合自在线不卡 | 国产成人精品免费视频网站| 欧美精品一卡二卡| 中文字幕亚洲综合久久菠萝蜜| 亚洲成av人片一区二区梦乃| 日本一区中文字幕 | 国产99一区视频免费| 欧美精选一区二区| 亚洲免费在线视频| 国产成人精品综合在线观看| 欧美一区二区视频观看视频| 一区二区三区丝袜| 成人免费黄色大片| 国产亚洲欧洲997久久综合| 日本人妖一区二区| 日本道免费精品一区二区三区| 久久精品人人做人人综合| 美腿丝袜亚洲综合| 欧美男生操女生| 亚洲精品国产品国语在线app| 欧美吻胸吃奶大尺度电影 | 亚洲在线中文字幕| av不卡在线观看| 欧美韩国日本一区| 国产精品一二三区在线| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 日本成人中文字幕在线视频| 欧洲一区二区三区在线| 亚洲男人的天堂网| 一本一本久久a久久精品综合麻豆| 国产精品久久久久影院老司| 国产激情偷乱视频一区二区三区| 精品国产亚洲一区二区三区在线观看| 五月婷婷另类国产| 欧美电影一区二区三区| 亚洲成人av在线电影| 欧美日韩国产在线播放网站| 一区二区三区在线视频观看58| 色婷婷av一区二区三区大白胸| 亚洲欧洲成人精品av97| 色综合天天性综合| 亚洲欧美日韩在线播放| 色婷婷综合久久久久中文| 亚洲精品欧美激情| 欧美日韩一级二级| 日韩电影在线观看网站| 欧美一区二区三区系列电影| 久久机这里只有精品| 精品久久国产97色综合| 国产精品99精品久久免费| 日本一区二区免费在线观看视频 | 欧美揉bbbbb揉bbbbb| 午夜精品久久久久久久久| 日韩欧美在线123| 精品亚洲成av人在线观看| 国产日韩欧美麻豆| 91玉足脚交白嫩脚丫在线播放| 亚洲一级二级在线| 91精品国产综合久久久久久漫画 | 国产福利一区二区三区视频在线| 欧美韩国一区二区| 在线精品视频一区二区| 日本午夜一区二区| 国产网站一区二区| 91原创在线视频| 日本不卡一区二区| 国产日韩欧美精品电影三级在线| 色婷婷综合久久久久中文一区二区 | 成人av免费网站| 亚洲电影激情视频网站| 久久久久成人黄色影片| 99精品国产91久久久久久|