• Show log

    Commit

  • Hash : 4d9b3d1d
    Author : Nikhil Ramakrishnan
    Date : 2019-07-16T02:45:03

    [woff2] Reconstruct `loca', `hmtx', and swap out stream. Add necessary functions to reconstruct loca and hmtx tables (the two remaining tables that can have a transform). `woff2_open_font' is now capable of loading a woff2 font face. This code may still need more refining and better memory management. * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add total (final) size of sfnt stream. (WOFF2_InfoRec): Add header checksum value. * src/sfnt/sfobjs.c (sfnt_open_font): Change `face_instance_index' parameter to its pointer so its value can be modified by `woff2_open_font'. * src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF_AT): New macro to write into sfnt buffer at given position. (write_buf): Add parameter `extend_buf' which allows caller to specify whether buffer should be reallocated before copying data. (WRITE_SFNT_BUF): Updated. (pad4, store_loca, reconstruct_htmx): New functions. (reconstruct_glyf): Calculate loca values and store them. (reconstruct_font): Call `reconstruct_hmtx', write table record entries, and calculate table checksums. Also calculate font checksum and update `checksumAdjustment' entry in head table. (woff2_open_font): Open stream for sfnt buffer, swap out input stream and return. * src/sfnt/sfwoff2.h (woff2_open_font): Modify parameter to accept pointer to `face_index'.

  • README

  •   FreeType 2.10.1
      ===============
    
      Homepage: https://www.freetype.org
    
      FreeType is a freely available software library to render fonts.
    
      It  is  written  in  C,  designed to  be  small,  efficient,  highly
      customizable, and  portable while capable of  producing high-quality
      output  (glyph  images) of  most  vector  and bitmap  font  formats.
    
      Please   read   the  docs/CHANGES   file,   it  contains   IMPORTANT
      INFORMATION.
    
      Read the  files `docs/INSTALL*'  for installation  instructions; see
      the file `docs/LICENSE.TXT' for the available licenses.
    
      The FreeType  2 API  reference is located  in `docs/reference/site';
      use  the  file `index.html'  as  the  top entry  point.   Additional
      documentation is available as a separate package from our sites.  Go
      to
    
        https://download.savannah.gnu.org/releases/freetype/
    
      and download one of the following files.
    
        freetype-doc-2.10.1.tar.xz
        freetype-doc-2.10.1.tar.gz
        ftdoc2101.zip
    
      To view the documentation online, go to
    
        https://www.freetype.org/freetype2/docs/
    
    
      Mailing Lists
      =============
    
      The preferred way  of communication with the FreeType  team is using
      e-mail lists.
    
        general use and discussion:      freetype@nongnu.org
        engine internals, porting, etc.: freetype-devel@nongnu.org
        announcements:                   freetype-announce@nongnu.org
        git repository tracker:          freetype-commit@nongnu.org
    
      The lists are moderated; see
    
        https://www.freetype.org/contact.html
    
      how to subscribe.
    
    
      Bugs
      ====
    
      Please submit bug reports at
    
        https://savannah.nongnu.org/bugs/?group=freetype
    
      Alternatively,    you   might    report    bugs    by   e-mail    to
      `freetype-devel@nongnu.org'.   Don't  forget   to  send  a  detailed
      explanation of the problem --  there is nothing worse than receiving
      a terse message that only says `it doesn't work'.
    
    
      Enjoy!
    
    
        The FreeType Team
    
    ----------------------------------------------------------------------
    
    Copyright (C) 2006-2019 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.
    
    
    --- end of README ---