JFLib

Third-party notices#

Parts of JFLib are translations of third-party open-source code, follow its algorithms and constants closely, or embed third-party data, fonts and artwork. Those parts remain under their original licenses, independently of JFLib's own license. This file lists them with their copyright holders. The license texts are in licenses/, unmodified as published upstream, except where an entry says the text was taken from a source-file header.

Every build ships this file and licenses/. build_rs.py copies both next to each app (the style notices go to licenses/<app>/<style>/), tools/package.py puts them into the Windows setup, the MSIX, .deb, .rpm, AppImage and Flatpak packages (on Linux in /usr/share/doc/<package>/), and the Android build packs them below assets/ in the APK. A library crate published on its own holds its part of licenses/ as a copy in its folder and names these licenses in its manifest; build_rs.py check keeps the copies equal.

Many Rust modules are ports of JFLib's earlier x86 assembly, named in their file headers (for example [src/img/webp_vp8.s]). That assembly was itself written from the upstream sources, so the upstream licenses below apply to the Rust code in the same way.

Required statements#

This software is based in part on the work of the Independent JPEG Group.

Portions of this software are copyright © 1996-2026 The FreeType Project (https://freetype.org). All rights reserved.

Overview#

ComponentUpstream versionLicenseUsed inLicense files
libjxl0.11.1, 0.7BSD-3-Clause, Google patent grantlib/img_jxl, lib/img_jxl_enc, tools/jxl_ref.pylibjxl-LICENSE.txt, libjxl-PATENTS.txt
libwebp1.3BSD-3-Clause, Google patent grantlib/img_webplibwebp-COPYING.txt, libwebp-PATENTS.txt
IJG libjpeg, libjpeg-turbolibjpeg-turbo 3.xIJG License, BSD-3-Clause, Zlib (SIMD code)lib/img_jpeglibjpeg-turbo-LICENSE.md, libjpeg-turbo-README.ijg, libjpeg-turbo-SIMD-zlib.txt
stb_image–MIT or public domain (Unlicense)lib/img_jpeg/dec.rs, lib/compress/deflate/dec.rsstb-LICENSE.txt
zlib–Zliblib/compress/deflate/enc.rszlib-LICENSE.txt
miniz–MITlib/compress/deflate/enc.rsminiz-LICENSE.txt
DirectXTex–MITlib/img_ddsDirectXTex-LICENSE.txt
libtiff4.xlibtiff Licenselib/img_tiff/dec.rslibtiff-LICENSE.md
FreeType2.xFreeType License (FTL)lib/text/outline.rsFreeType-FTL.txt
paint.net3.36MIT with exceptionslib/fx, lib/gfxpaint.net-3.36-License.txt
Pinta–MITlib/fx, lib/gfxPinta-license-mit.txt, Pinta-license-pdn.txt
jxrlib1.1BSD-2-Clauselib/img_jxrjxrlib-LICENSE.txt
libaom (AV1)–BSD-2-Clause, AOMedia Patent License 1.0lib/img_av1libaom-LICENSE.txt, AOM-PATENTS.txt
BrotliRFC 7932MITlib/compressBrotli-LICENSE.txt
WHATWG Encoding Standard2026-11 (labels and indexes)BSD-3-Clause (in source code)lib/formatsWHATWG-LICENSE.txt
Public Suffix List2026-11-27 (commit 73edc270)MPL-2.0lib/netpkt/psl_data.rsPSL-LICENSE.txt
Adobe Glyph List2.0BSD-3-Clauselib/pdf/src/read/tables.rsAGL-LICENSE.txt
Adobe CMap resourcescmap-resources commit f5cf3bca, Adobe-XX-UCS2 of 2023BSD-3-Clauselib/cidmap/data/cidmap.binadobe-cmap-resources-LICENSE.md
Liberation fonts (advance widths only)2.xSIL Open Font License 1.1lib/pdf/src/read/tables.rsLiberation-OFL.txt
fdlibm5.3Sun noticelib/fx/warp.rsfdlibm-NOTICE.txt
Unicode Character Database, CLDRUCD 15.0 / 15.1, CLDRUnicode License v3lib/ui, lib/text, lib/datetimeUnicode-3.0.txt
tz database–public domainlib/datetime/zones.rsnone needed
DejaVu fonts2.37Bitstream Vera / Arev license, public domain changeslib/doc_view, apps/termtest, styles kde, classicDejaVu-LICENSE.txt
Inter font–SIL Open Font License 1.1styles jfoffice, backupcraft, netlab, apps/officeiconteststyles/*/assets/OFL-Inter.txt
WordCraft icon motifs2026MITstyle jfoffice (icons.bin, also used by backupcraft and netlab)styles/jfoffice/LICENSE-icons.txt, styles/netlab/LICENSE-icons.txt
HarfRust and its cratessee noticeMIT, Apache-2.0, Zlib, Unicode-3.0lib/text_shapelib/text_shape/NOTICE.md

libjxl#

Copyright (c) the JPEG XL Project Authors. BSD-3-Clause, with Google's additional IP rights grant (patents). Versions 0.11.1 and 0.7 carry the same license and patent texts.

  • lib/img_jxl_enc/*: a port of libjxl 0.11.1's encoder (enc_ac_strategy.cc, enc_adaptive_quantization.cc, enc_ans.cc, enc_modular.cc, enc_ma.cc, enc_patch_dictionary.cc, enc_detect_dots.cc, enc_chroma_from_luma.cc, enc_photon_noise.cc, enc_icc_codec.cc, enc_transforms-inl.h, enc_splines.cc and others, named in each file's header). ebutter.rs ports libjxl 0.7's Butteraugli (lib/jxl/butteraugli/butteraugli.cc).
  • lib/img_jxl/spline.rs: libjxl 0.7's spline decoding and rendering (splines.cc).
  • lib/img_jxl/emath.rs: libjxl's fast math (base/fast_math-inl.h, rational_polynomial-inl.h).
  • lib/img_jxl/jpeg.rs: libjxl 0.11.1's JPEG reconstruction from the jbrd box.
  • The decoder in lib/img_jxl (dec.rs, ent.rs, vdc.rs, epf.rs, noise.rs, rnd.rs and the generated tab.rs) follows the model tools/jxl_ref.py, which was written from libjxl 0.11.1's decoder sources (dec_frame.cc, dec_modular.cc, dec_ans.cc, dec_huffman.cc, dec_context_map.cc, quantizer.cc, stage_epf.cc, dec_noise.cc, render_pipeline/stage_*.cc and others, named in each file's header). The other files of lib/img_jxl cite libjxl for behaviour only.
  • modules/jxlenc ships lib/img_jxl_enc as a separate module next to the apps.

libwebp#

Copyright (c) 2010, Google Inc. BSD-3-Clause, with Google's additional IP rights grant for the WebM codecs (patents). JFLib follows libwebp 1.3.

  • lib/img_webp/vp8.rs (translated): VP8BitReader, ParseIntraMode, ParseResiduals, GetCoeffs, the inverse transforms, the loop filters in libwebp's SSE2 form, the fancy upsampler and the YUV-to-RGB constants of yuv.h. The intra predictors are a reimplementation from RFC 6386.
  • lib/img_webp/vp8_enc.rs (translated): libwebp's lossy encoder at method 4, including the tables kLinearToGammaTab, kWeightY, kBiasMatrices and kFreqSharpening.
  • lib/img_webp/vp8l.rs (mixed): the bitstream and transforms are reimplemented from RFC 9649; BuildHuffmanTable, the VP8LBitReader model and kCodeToPlane follow libwebp.
  • lib/img_webp/vp8l_enc.rs (mixed): libwebp's lossless heuristics and constants (entropy analysis, GetBestGreenToRed / GetBestGreenToBlue, palette sorting, hash chain, LZ77 and RLE references); the data layout, bit writer, Huffman builder and parser are JFLib's.
  • lib/img_webp/tab.rs: the VP8 probability, quantizer and zigzag tables (identical to RFC 6386, whose reference code is also BSD-licensed by Google), kBModesProba in libwebp's mode order, and from line 283 the gamma table computed with libwebp's formula (picture_csp_enc.c).
  • lib/img_webp/container.rs reimplements the RIFF container from RFC 9649 and cites libwebp only for acceptance rules.

IJG libjpeg and libjpeg-turbo#

The IJG code is copyright (C) 1991-2020 Thomas G. Lane, Guido Vollbeding and the Independent JPEG Group; libjpeg-turbo-README.ijg is the unmodified IJG README with its license terms. The libjpeg-turbo modifications are copyright D. R. Commander and others (BSD-3-Clause, libjpeg-turbo-LICENSE.md). libjpeg-turbo's x86 SIMD code is copyright 2009 Pierre Ossman for Cendio AB, D. R. Commander, MIYASAKA Masaru and others under the Zlib license; libjpeg-turbo-SIMD-zlib.txt reproduces that notice from simd/nasm/jsimdext.inc of libjpeg-turbo 3.2.0.

  • lib/img_jpeg/dsp.rs (translated): the accurate integer DCT and IDCT (jfdctint, jidctint in the form of libjpeg-turbo's jfdctint-sse2 / jidctint-sse2), the quantization of jquanti-sse2, the colour conversions of jccolext-sse2 / jdcolext-sse2, IJG's fancy upsampling (h2v1, h2v2, and libjpeg-turbo's h1v2), jcsample's bias pattern and IJG's jpeg_natural_order. The Huffman and quantization tables are those of ITU-T T.81 Annex K.
  • lib/img_jpeg/enc.rs (mixed): IJG's jpeg_quality_scaling and jpeg_add_quant_table, libjpeg-turbo's compute_reciprocal (jcdctmgr.c) and IJG's jpeg_gen_optimal_table.
  • lib/img_jpeg/dec.rs reimplements the decoder; it matches libjpeg's behaviour (jpeg_resync_to_restart, progressive refinement) without its code.

stb_image#

Copyright (c) 2017 Sean Barrett; MIT, or public domain (Unlicense), at the user's choice. The Huffman lookup of lib/img_jpeg/dec.rs (9-bit fast table with combined AC entries, the maxcode sentinel and the sign-extension bias table) closely resembles stb_image.h, and lib/compress/deflate/dec.rs builds its Huffman tables like stb_image's zlib decoder (10-bit fast table, canonical slow path). No attribution is required under the public-domain alternative; the license is included for transparency.

libtiff#

Copyright (c) 1988-1997 Sam Leffler, Copyright (c) 1991-1997 Silicon Graphics, Inc.

  • lib/img_tiff/dec.rs: the YCbCr-to-RGB tables and conversion are a translation of libtiff's tif_color.c (TIFFYCbCrToRGBInit, TIFFYCbCrtoRGB, Code2V, CLAMPw).
  • lib/img_tiff/ccitt.rs reimplements CCITT Group 3 / 4 decoding from ITU-T T.4 and T.6; it follows libtiff only in behaviour (EOL synchronisation, bit polarity) and uses none of libtiff's code or state tables.
  • lib/img_tiff/lzw.rs and the LZW writer in enc.rs are JFLib's own; they read and write libtiff-compatible streams. The Berkeley compress notice in libtiff-LICENSE.md therefore does not apply to JFLib.

zlib and miniz#

zlib: (C) 1995-2026 Jean-loup Gailly and Mark Adler, Zlib license. miniz: Copyright 2013-2014 RAD Game Tools and Valve Software, Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC, MIT License. lib/compress/deflate/enc.rs uses zlib's compression levels (configuration_table of deflate.c: good, lazy, nice and chain limits) and its TOO_FAR rule, and limits Huffman code lengths with miniz's Kraft-sum repair (tdefl_huffman_enforce_max_code_size). The rest of the compressor and the decoder lib/compress/deflate/dec.rs are JFLib's own.

DirectXTex#

Copyright (c) Microsoft Corporation, MIT License. lib/img_dds follows DirectXTex for the BC7 speed levels (bc7.rs), the perceptual BC1-BC3 channel weights (enc.rs), the order in which legacy DDS pixel formats are recognised (read.rs) and the DDSPF_* header values it writes (write.rs). The block encoders and decoders are JFLib's own.

FreeType#

FreeType is copyright 1996-2026 David Turner, Robert Wilhelm, Werner Lemberg and the FreeType Project, used under the FreeType License (FTL); see the credit under "Required statements". lib/text/outline.rs (Outline::embolden, lines 194-294) is a translation of FT_Outline_EmboldenXY from src/base/ftoutln.c.

paint.net 3.36 and Pinta#

paint.net 3.36: Copyright (C) dotPDN LLC, Rick Brewster, Chris Crosetto, Tom Jackson, Michael Kelsey, Brandon Ortiz, Craig Taylor, Chris Trevino, and Luke Walker. Portions Copyright (C) Microsoft Corporation. MIT License with three exceptions (see paint.net-3.36-License.txt): the code in lib/fx and lib/gfx uses none of paint.net's logo or icon artwork and none of its "resource assets" (.resources, .resx, .png files), and JFLib contains no GPC code.

Pinta: Copyright (c) 2010 Jonathan Pobst and the Pinta contributors, MIT License. Pinta's C# port of the paint.net 3.36 effects keeps paint.net's license (Pinta-license-pdn.txt).

The following files implement paint.net 3.x algorithms with their integer arithmetic, tables and edge handling: lib/fx/adj.rs (Brightness / Contrast, Hue / Saturation, Levels, Posterize, Auto Level), blur.rs, conv.rs, hist.rs, lochist.rs, lut.rs, stylize.rs, noise.rs, photo.rs, render.rs, artistic.rs, warp.rs, and lib/gfx/blendmode.rs (UserBlendOps), flood.rs (CheckColor) and gradient.rs. The adjustments that paint.net added after 3.36 (Curves, Exposure, Highlights / Shadows, Temperature / Tint) are JFLib's own implementations of the features; paint.net 4 and later are not open source and no code of theirs is used. The Curves table (spline_lut in lut.rs) is JFLib's own natural cubic spline (a tridiagonal system solved with the Thomas algorithm); it gives the same values as paint.net's SplineInterpolator, whose code comes from Numerical Recipes and is not used.

jxrlib#

Copyright © Microsoft Corp. BSD-2-Clause. lib/img_jxr/tab.rs contains jxrlib's DPK_QPS_8 and DPK_QPS_420 quality tables (lines 750 and 758), which lib/img_jxr/enc.rs uses to map the quality setting to quantizers. The rest of lib/img_jxr implements JPEG XR from ITU-T T.832.

libaom and the AV1 specification#

libaom: Copyright (c) 2016, Alliance for Open Media. BSD-2-Clause, with the Alliance for Open Media Patent License 1.0 (AOM-PATENTS.txt), which also covers implementations of the AV1 specification.

  • lib/img_av1/eec.rs: the range encoder follows libaom's od_ec_enc.
  • lib/img_av1/etx.rs: the lossless forward Walsh-Hadamard transform follows libaom's av1_fwht4x4; lib/img_av1/enc.rs uses libaom's loop filter level choice for key frames (LPF_PICK_FROM_Q).
  • The decoder (lib/img_av1) follows the AV1 Bitstream and Decoding Process Specification (copyright 2018 The Alliance for Open Media); its constant tables were extracted from the specification by tools/av1_spec_tables.py.

Brotli#

Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors. MIT License. lib/compress/brotli/dict.bin is Brotli's static dictionary and lib/compress/brotli/tab.rs its layout and word transforms (RFC 7932 appendices A and B), generated by tools/gen_brotli_dict.py. The encoder (lib/compress/brotli/enc.rs) follows libbrotli in how it scores matches, estimates the bits of a histogram, merges histograms into clusters, writes prefix codes and context maps, and parses near-optimally at levels 10 and 11. The decoder (lib/compress/brotli/mod.rs) builds its prefix-code tables as libbrotli does (a first-level table of 8 bits, second-level tables as large as their codes need) and, like libbrotli, leaves out the literal context when all contexts of a block type name one tree.

WHATWG Encoding Standard#

Copyright © WHATWG (Apple, Google, Mozilla, Microsoft). The standard is licensed under CC BY 4.0; the portions incorporated into source code are licensed under the BSD 3-Clause License instead. lib/formats/src/charsets.rs holds the standard's labels and, for its single-byte encodings, the bytes where its indexes differ from Python's codecs; lib/formats/src/cjk.rs and cjk.bin hold the indexes of its multi-byte encodings (jis0208, jis0212, euc-kr, big5, gb18030 and its ranges, ISO-2022-JP's katakana), from Python's codecs with the entries where the standard differs (Big5's HKSCS-2008 additions, GB18030-2022). Both are generated by tools/gen_encodings.py, whose --verify compares the tables with the standard's data and with encoding_rs's decoders. The tables of the DOS code pages come from Python's codecs alone.

Public Suffix List#

The Public Suffix List (https://publicsuffix.org), maintained by its volunteers and originally by Mozilla; Mozilla Public License 2.0. lib/netpkt/psl_data.rs holds its rules (the ICANN and the private section, labels beyond ASCII as A-labels, sorted, one per line) as tools/psl_gen.py generates them from public_suffix_list.dat of publicsuffix/list at a pinned commit; the file carries the MPL's notice and is used unmodified otherwise. lib/netpkt/psl.rs, which looks the rules up, is JFLib's own.

Adobe Glyph List and the widths of the standard fonts#

lib/pdf/src/read/tables.rs, generated by tools/gen_pdf_tables.py, holds what the PDF reader needs to turn glyph names and the 14 standard fonts into text:

  • the Adobe Glyph List 2.0 (glyph names to Unicode), copyright 2002-2019 Adobe, BSD 3-Clause License (AGL-LICENSE.txt). The generator reads it from Ghostscript's copy (gs_agl.ps), which holds the list unchanged; Ghostscript's own code is not used.
  • the encodings of ISO 32000-1 Annex D (StandardEncoding, WinAnsiEncoding, MacRomanEncoding, MacExpertEncoding, PDFDocEncoding, the Symbol font's encoding) as Unicode values, which the standard defines; the generator takes their glyph names from Ghostscript's encoding vectors.
  • the advance widths of Liberation Sans and Liberation Serif (regular, bold, italic, bold italic) for the characters of those encodings, which match Helvetica and Times: digitized data copyright (c) 2010 Google Corporation, copyright (c) 2012 Red Hat, Inc., SIL Open Font License 1.1 (Liberation-OFL.txt). No outlines or other font data are included.

Adobe CMap resources#

Copyright 1990-2023 Adobe, BSD 3-Clause License (adobe-cmap-resources-LICENSE.md). lib/cidmap/data/cidmap.bin, generated by tools/cidmap_gen.py, holds the predefined CMaps of ISO 32000-1 Table 118 for the character collections Adobe-GB1, -CNS1, -Japan1 and -Korea1 (code space, CID ranges, notdef ranges) from adobe-type-tools/cmap-resources at commit f5cf3bca, and the collections' CID -> Unicode tables Adobe-GB1-UCS2, -CNS1-UCS2, -Japan1-UCS2 and -Korea1-UCS2 (Adobe's, 2023), which that repository no longer holds, from the poppler-data 0.4.12 release tarball. The data is re-encoded (ranges, zstd), not changed. lib/cidmap/src/lib.rs, which reads it, is JFLib's own.

fdlibm#

Copyright (C) 1993 by Sun Microsystems, Inc. lib/fx/warp.rs (about lines 422-500, sincos) uses fdlibm's sine and cosine kernel polynomials (k_sin.c, k_cos.c). fdlibm-NOTICE.txt reproduces the notice from fdlibm's source files.

Unicode data#

Copyright © 1991-2026 Unicode, Inc. Unicode License v3.

  • lib/ui/i18n_unicode.rs: generated by tools/gen_unicode.py from UnicodeData.txt (Unicode 15.1.0).
  • lib/text/segment_data.rs: generated by tools/gen_segment.py from the Unicode Character Database (15.0.0) and Python's unicodedata (15.1.0).
  • lib/ui/i18n_locale.rs: regional formats and plural rules, a compact subset of CLDR.
  • lib/datetime/zones.rs: the Windows-to-IANA zone mapping of CLDR's windowsZones.xml.

tz database#

lib/datetime/zones.rs is generated by tools/gen_tz.py from the IANA tz database, which is in the public domain.

Fonts and artwork#

  • DejaVu fonts (DejaVu Sans, Sans Condensed, Sans Mono, Serif), version 2.37: Bitstream Vera fonts copyright (c) 2003 Bitstream, Inc.; Arev glyphs copyright (c) 2006 Tavmjong Bah; DejaVu changes in the public domain. Embedded by lib/doc_view (assets/), apps/termtest (DejaVu Sans Mono from lib/doc_view/assets) and the styles kde (DejaVu Sans as SGF1) and classic (DejaVu Sans Condensed as SGF1). licenses/DejaVu-LICENSE.txt, and with each style its own copy in styles/kde/assets/ and styles/classic/assets/. (styles/jfoffice/assets/ also holds a copy, although jfoffice now embeds Inter.)
  • Inter (SIL Open Font License 1.1, copyright (c) 2016 The Inter Project Authors): embedded by the styles jfoffice, backupcraft and netlab and by apps/officeicontest (which uses the style jfoffice); the license is in each style's assets/OFL-Inter.txt.
  • WordCraft icon motifs (MIT, copyright (c) 2026 ArtCraft Team and the WordCraft contributors): the office icon artwork of styles/jfoffice/icon_art.py and styles/jfoffice/assets/icons.bin, which the styles backupcraft and netlab embed too (netlab from its own copy in assets/); styles/jfoffice/LICENSE-icons.txt, styles/netlab/LICENSE-icons.txt.
  • The fonts and icons of the other styles: see each style's license files in styles/<style>/ and styles/<style>/assets/ and styles/NOTICE.md.

A style that embeds another style's fonts or icons (include_bytes!("../<other>/...")) ships that style's license files too, in licenses/<other>/.

References without copied code#

These projects are cited in comments for compatible behaviour, file formats or published algorithms; the review for this file found no code or tables copied from them, so they need no notice: Little CMS (tag choice and media white in lib/img_core/icc_xform.rs, icc_eval.rs), PCG and SplitMix64 (lib/base/rng.rs, same output as the reference generators), Hunspell (suggestion order and the .aff / .dic format in lib/spell), libavif (lib/img_avif/enc.rs), the HEVC test model HM (lib/img_hevc/enc.rs), giflib / Wuffs (lib/img_gif), Wu's colour quantizer (lib/img_core/quantize.rs), BLAKE3 (lib/crypto/blake3.rs), FastCDC (lib/cas/chunker.rs), the SquashFS format and the AppImage runtime (apps/appimagert), libtiff's LZW and CCITT behaviour (lib/img_tiff), the WebP container (lib/img_webp/container.rs), the paint.net .pdn format (lib/img_pdn), and paint.net's default settings and clipboard conventions (lib/img_core, lib/img_jpeg, lib/img_webp, lib/plat). lib/img_pdn/template.rs holds the .NET serialization headers (class and field names) of a .pdn file written by paint.net 5.1, which paint.net needs to read JFLib's files, and lib/plat/linux_xkb.rs a subset of the X11 keysym names and values, which XKB keymaps use; both are interoperability data, not code of paint.net or X.Org.

Tools and test data#

These files are not part of the library or of any package:

  • tools/wlproxy/keymap.xkb is the keymap WSLg's compositor sends, compiled from xkeyboard-config data (copyright Joseph Moss, the Free Software Foundation, Digital Equipment Corporation, Silicon Graphics and many others; MIT / X11-style permissions). The full notices are in tools/wlproxy/xkeyboard-config-COPYING.txt.
  • apps/render2dtest/dxf/ holds four DXF drawings of ezdxf (copyright (c) 2020 Manfred Moitzi, MIT): three from its examples_dxf/ and bin_dxf_r12.dxf, which came to GDAL's test data from ezdxf. The test program render2dtest embeds them for --test dxf; it is no part of the library and is not packaged. The license text and where each file comes from are in that folder (LICENSE-ezdxf.txt, README.md).
  • tools/update_manifest.py implements Ed25519 from the algorithm of RFC 8032 section 5.1 and the Explicit-Formulas Database. RFC 8032 is an IRTF document, whose example code is not licensed for modified use (IETF Trust Legal Provisions, section 8.g), so that code is not used.

Rust crates of lib/text_shape#

HarfRust, Unicode Bidi, Unicode Script and their dependencies are listed with their licenses in lib/text_shape/NOTICE.md; the license files are in lib/text_shape/licenses/. Builds ship them as licenses/text_shape/.

Source: THIRD_PARTY_NOTICES.md in the JFLib repository.