freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] [t1cid] Set FT_FACE_FLAG_CID_KEYED.


From: suzuki toshiya (@mpsuzuki)
Subject: [Git][freetype/freetype][master] [t1cid] Set FT_FACE_FLAG_CID_KEYED.
Date: Thu, 11 May 2023 14:31:26 +0000

suzuki toshiya pushed to branch master at FreeType / FreeType

Commits:

  • 6ca0a935
    by suzuki toshiya at 2023-05-11T14:31:23+00:00
    [t1cid] Set FT_FACE_FLAG_CID_KEYED.
    
    * cidobjs.c (cid_face_init): Set FT_FACE_FLAG_CID_KEYED.
    
    * cidriver.c (cid_get_is_cid): Comment about the case that
    is_cid cannot guarantee the glyph collection specification.
    

2 changed files:

Changes:

  • src/cid/cidobjs.c
    ... ... @@ -374,6 +374,14 @@
    374 374
           if ( info->is_fixed_pitch )
    
    375 375
             cidface->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
    
    376 376
     
    
    377
    +      /*
    
    378
    +       * For the sfnt-wrapped CID fonts for MacOS, currently,
    
    379
    +       * its `cmap' tables are ignored, and the content in
    
    380
    +       * its `CID ' table is treated the same as naked CID-keyed
    
    381
    +       * font.  See ft_lookup_PS_in_sfnt_stream().
    
    382
    +       */
    
    383
    +      cidface->face_flags |= FT_FACE_FLAG_CID_KEYED;
    
    384
    +
    
    377 385
           /* XXX: TODO: add kerning with .afm support */
    
    378 386
     
    
    379 387
           /* get style name -- be careful, some broken fonts only */
    

  • src/cid/cidriver.c
    ... ... @@ -141,8 +141,14 @@
    141 141
         FT_UNUSED( face );
    
    142 142
     
    
    143 143
     
    
    144
    +    /*
    
    145
    +     * XXX: If the ROS is Adobe-Identity-H or -V,
    
    146
    +     * the font has no reliable information about
    
    147
    +     * its glyph collection.  Should we not set
    
    148
    +     * *is_cid in such cases?
    
    149
    +     */
    
    144 150
         if ( is_cid )
    
    145
    -      *is_cid = 1; /* cid driver is only used for CID keyed fonts */
    
    151
    +      *is_cid = 1;
    
    146 152
     
    
    147 153
         return error;
    
    148 154
       }
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]