26 Commits

Author SHA256 Message Date
Arnav Singh
b508d213c2 - Update to 3.3.3:
* Failure to set LCD filter is no longer fatal
  * COLRv1 fonts are now rejected or ignored as they are not supported.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=44
2025-12-27 18:51:08 +00:00
Arnav Singh
8ebf643dfb - Updated to 3.3.2:
* Fixed crash when failing to load a font.
  * Fixed memory leak in fcft_fini() if the font cache contained entries for
    fonts that had failed to load.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=42
2025-07-16 15:10:49 +00:00
Arnav Singh
6265b64ad8 - Updated to 3.3.1:
* Fixed binary incompatibility with 3.2 and earlier.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=40
2025-03-13 17:45:15 +00:00
Arnav Singh
1400383515 - Updated to 3.3.0:
* Added scaling_filter to fcft_font_options. The default value is
    FCFT_SCALING_FILTER_CUBIC.
  * Added new scaling filters: impulse, box, linear, gaussian, lanczos3
    and lanczos3_stretched.
  * When scaling bitmap fonts (not emoji fonts), do not apply a scaling filter.
    In earlier versions, fcft applied a bilinear scaling filter.
  * Deprecated fcft_set_scaling_filter;
    use fcft_font_options::scaling_filter instead.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=39
2025-03-12 09:09:58 +00:00
Arnav Singh
c6e9b5ddd2 - Updated to 3.2.0:
* Added fcft_from_name2, allowing you to instantiate fonts and override
    certain rendering defaults.
  * Added fcft_font_options_create and fcft_font_options_destroy, to be used
    with the new fcft_from_name2.
  * fcft can now decode color glyphs from sRGB to linear, and optionally render
    to higher precision pixman surfaces. See the new fcft_from_name2
    and fcft_font_options_create().
  * Unicode codepoints with the emoji components tag are no longer treated
    as emojis, when selecting font. This fixes an issue where
    e.g. 0..9 were loaded from a fallback font instead of the primary font,
    if the primary font had the emoji language bit set.
  * Deprecated fcft_set_emoji_presentation - use fcft_from_name2 instead.
  * Fixed undefined behavior when using copies of mtx_t and pthread_rwlock_t objects.
  * Enable building tests and install additional build dependencies so that
    tests are actually built and run.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=37
2025-03-05 16:10:34 +00:00
Arnav Singh
55817aa37f - Update to 3.1.10:
* Unicode data files updated to 16.0
  * Character (terminal) width is now evaluated using utf8proc_charwidth
    instead of wcwdith.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=35
2025-01-02 17:16:27 +00:00
Arnav Singh
b56964468f - Update to 3.1.9:
* Unicode data files updated to 15.1
  * FCFT_LOG_COLORIZE_AUTO now respects the NO_COLOR environment variable.
  * SVG glyphs are now centered on the line.
  * Fixed logs to respect specified log level.
  * Fcft now automatically ensures the LC_NUMERIC locale is
    correctly configured for FcNameParse().
  * Failure to look up font name is now logged.
  * Now built against distribution nanosvg.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=31
2024-10-23 15:26:18 +00:00
Arnav Singh
4f29bc82a8 - Update to 3.1.8:
* Fixed setting font size to do it in points instead of pixels so that
    it works with fractional pixel sizes.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=29
2024-02-26 17:47:17 +00:00
Arnav Singh
d388dbc6cd - Update to 3.1.7:
* Fixed infinite loop on certain invalid fontfeatures values.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=27
2023-12-15 08:48:26 +00:00
Arnav Singh
a7d2ae9630 - Update to 3.1.6:
* Updated bundled nanosvg.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=25
2023-07-14 16:49:27 +00:00
Arnav Singh
2746f81509 - Update to 3.1.5:
* SVG fonts now ignore user transformations instead of failing with
    "unimplemented feature".
  * Updated glyph advance width calculation for Harfbuzz 5.2 changes.
    The new calculation is incompatible with Harfbuzz 5.1 and earlier, so
    required version of Harfbuzz has been increased to 5.2.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=23
2022-09-23 22:11:35 +00:00
Arnav Singh
af9810d040 - Update to 3.1.4:
* Fixed crash when failing to load an SVG glyph with multiple sub-glyphs.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=21
2022-09-06 19:20:21 +00:00
Arnav Singh
4a3b08e6c6 - Update to 3.1.3:
* Fixed bitmap font glyph advance width calculation when the user has
    enabled 10-scale-bitmap-fonts.conf in fontconfig.
- Fix libfcft package missing license file, and remove redundant copy of
  doc files and license in $datadir/doc/fcft/

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=19
2022-08-22 18:38:15 +00:00
Arnav Singh
7af6d471a8 - Update to 3.1.2:
* Fixed SVG glyphs failing with “bad argument” if LCD subpixel rendering is
    enabled.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=17
2022-05-19 21:11:38 +00:00
Arnav Singh
58a9b66e6d - Update to 3.1.1:
* Added OT-SVG support using a bundled nanosvg as backend.
    FCFT_CAPABILITY_SVG has been added to fcft_capabilities to detect this.
  * Fixed fcft_font::name, and fcft_glyph::font_name not being set correctly
    for font collections (e.g. *.ttc files).
  * Fixed assertion inside HarfBuzz with fcft_rasterize_grapheme_ut32
    when rasterizing a glyph fails.
- Set all options and features explicitly instead of relying on auto-detection
  to ensure build fails if dependencies change.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=15
2022-05-01 20:44:08 +00:00
f853f2f19d Accepting request 955209 from home:alarrosa:branches:X11:Wayland
- Leap 15.4 uses python3.6 so the python3-dataclasses is
  BuildRequired. Also, gcc-11 is enforced in Leap since gcc7 which
  is used by default is too old

OBS-URL: https://build.opensuse.org/request/show/955209
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=14
2022-02-17 17:45:59 +00:00
Arnav Singh
aa1e35c320 - Update to 3.0.1:
* Added fcft_font.name member for the name of the primary font.
  * Added fcft_glyph.font_name member for the name of the font that the glyph
    was loaded from.
  * Added fcft_init and fcft_fini to initialize and deinitialize the library,
    which must now be called explicitly. Also, fcft_log_init has been removed,
    and logging is now initialized by fcft_init.
  * All wchar_t usage has been replaced with uint32_t. Also,
    fcft_{glyph,grapheme,text_run}_rasterize have been renamed to
    fcft_rasterize_{char,grapheme,text_run}_utf32 to emphasize this.
  * fcft_rasterize_grapheme_utf32 no longer accepts layout tags, unlike
    its predecessor fcft_grapheme_rasterize. They should be
    set using fontfeature when calling fcft_from_name.
  * Removed fcft_size_adjust.
  * Removed fcft_font.space_advance member.
  * Fixed bug in fcft_rasterize_text_run_utf32 due to uninitialized variable.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=13
2022-02-05 23:26:31 +00:00
Arnav Singh
6f50eb5f1b - Update to 2.5.1:
* fcft_set_scaling_filter now applies to color bitmap fonts only,
    ie emoji fonts.
  * Fixed incorrect value of FCFT_SCALING_FILTER_CUBIC constant.
  * Fixed pixman errors and program freezes when scaling bitmap fonts to
    very small sizes.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=12
2021-12-08 20:33:08 +00:00
Arnav Singh
80f5569b10 - Update to 2.5.0:
* Added fcft_set_emoji_presentation that can be used to override
    emojis' default presentation style.
  * Changed fcft_*_rasterize so that emoji's default presentation is now
    accounted for when searching for a font containing the emoji codepoint,
    codepoints whose default presentation is "text" will no longer consider
    emoji fonts, and codepoints whose default presentation is "emoji" will
    no longer consider non-emoji fonts.
  * Improved handling of RTL scripts in fcft_text_run_rasterize

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=11
2021-11-13 12:37:41 +00:00
Arnav Singh
45a6b3a01f - Update to 2.4.6:
* Updated UnicodeData to 14.0
  * Fixed fcft_glyph.wc to be the Unicode codepoint instead of font index.
  * Fixed assertion in glyph_cache_resize when rasterizing a large amount of
    code points.
  * Fixed bad performance of grapheme cache when rasterizing
    many grapheme clusters.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=10
2021-10-26 05:41:29 +00:00
Arnav Singh
8a24402e3b - Update to 2.4.5:
* Fixed fcft_text_run_rasterize not checking if codepoint is in
    the font’s charset before attempting shaping.
  * Fixed crash when destroying a font with a grapheme cache entry
    representing a failed grapheme glyph.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=9
2021-08-14 16:45:27 +00:00
Arnav Singh
d6dcd1255c - Update to 2.4.4:
* Fixed rendering of bitmap fonts with Freetype >= 2.11

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=8
2021-07-22 09:21:29 +00:00
Arnav Singh
0a98c82cbf - Update to 2.4.3:
* Fixed bitmap/aliased font glyphs being mirrored on
    big-endian architectures.
  * Fixed color font glyphs having wrong colors on big-endian architectures.
  * Fixed crash when destroying a font that failed to load
    (typically happens when there are no fonts available at all).

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=7
2021-07-18 17:03:31 +00:00
Arnav Singh
c429506d4e OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=6 2021-07-08 02:27:46 +00:00
Arnav Singh
94619d5e04 - Update to 2.4.1:
* Log messages are now printed to stderr instead of stdout.
  * fcft_grapheme_rasterize() now sets a minimum grapheme column count of 2
    when the cluster ends with an Emoji variant selector (codepoint 0xFE0F).
  * Fixed compilation error when fallback definition for FCFT_EXPORT was used
    in meson.build.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=4
2021-07-01 19:51:28 +00:00
3333bd37aa Accepting request 899429 from home:Arnavion
Add fcft package, a dependency of foot.

OBS-URL: https://build.opensuse.org/request/show/899429
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/fcft?expand=0&rev=1
2021-06-11 10:32:57 +00:00