Edit

kc3-lang/freetype/meson_options.txt

Branch :

  • Show log

    Commit

  • Author : Behdad Esfahbod (بهداد اسفهبد)
    Date : 2025-04-26 13:53:24
    Hash : 5d2fd760
    Message : Provide configuration option to dynamically load the HarfBuzz library. We now request HarfBuzz version 2.6.8 (published in June 2020) or newer to simplify the setup; this version introduced function `hb_ot_layout_lookup_get_glyph_alternates`, which we need for the adjustment database of the auto-hinter. No CMake support yet for dynamic loading. * include/freetype/config/ftoption.h, devel/ftoption.h (FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC): New configuration macro. * builds/unix/configure.raw: Implement `--with-harfbuzz=dynamic`. This gets tested automatically if we can't link with `libharfbuzz`. (ft_option_set, ft_option_unset): Refine. Require at least HarfBuzz version 2.6.8. * meson.build: Do the same as `configure.raw`. * meson_options.txt: Updated. * CMakeLists.txt: Require at least HarfBuzz version 2.6.8.

  • meson_options.txt
  • #
    # meson_options.txt
    #
    
    # Copyright (C) 2020-2024 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.
    
    
    option('brotli',
      type: 'feature',
      value: 'auto',
      description: 'Use Brotli library to support decompressing WOFF2 fonts')
    
    option('bzip2',
      type: 'feature',
      value: 'auto',
      description: 'Support reading bzip2-compressed font files')
    
    option('harfbuzz',
      type: 'combo',
      choices: ['auto', 'enabled', 'dynamic', 'disabled'],
      value: 'auto',
      description: 'Use Harfbuzz library to improve auto-hinting;'
                   + ' if available, many glyphs not directly addressable'
                   + ' by a font\'s character map will be hinted also')
    
    option('mmap',
      type: 'feature',
      value: 'auto',
      description: 'Use mmap() to open font files for faster parsing')
    
    option('png',
      type: 'feature',
      value: 'auto',
      description: 'Support color bitmap glyph formats in the PNG format;'
                   + ' requires libpng')
    
    option('tests',
      type: 'feature',
      value: 'disabled',
      description: 'Enable FreeType unit and regression tests')
    
    option('zlib',
      type: 'combo',
      choices: [ 'auto', 'none',
                 'internal', 'external', 'system',
                 'disabled', 'enabled' ],
      description: 'Support reading gzip-compressed font files')
    
    option('error_strings',
      type: 'boolean',
      value: false,
      description: 'Enable support for meaningful error descriptions')
    
    # EOF