Changelog
Source:NEWS.md
systemfonts 1.2.1
- Fix a memory issue when adding new fonts with
add_fonts()
- Default to not downloading woff2 files from Google Fonts since it is poorly supported on many systems
- Fixed a bug in
get_from_font_squirrel()
where the font wasn’t placed in the user specified location
systemfonts 1.2.0
CRAN release: 2025-01-16
- Providing the font name as the family should now result in better matching
- Improved the fallback options for Windows so that as many scripts are now covered
- Add infrastructure to add uninstalled font files to the search path used for font matching
- Add facilities to download and register fonts from web repositories such as Google Fonts and Font Squirrel
- Add
require_font()
that does it’s best to ensure that a given font is available after being called. - Added functions for extracting outline and raster representation of glyphs
systemfonts 1.1.0
CRAN release: 2024-05-15
-
match_fonts()
have been added as a vectorized and generalized version ofmatch_font()
. In the processmatch_font()
has been deprecated in favour ofmatch_fonts()
- Two internal functions for converting weight and width names to integers have been exported
- Fix a segfault on macOS when the system encounters a corrupted font collection (#113)
systemfonts 1.0.4
CRAN release: 2022-02-11
- Use Courier New as default mono font on macOS instead of Courier to avoid issues between FreeType and Courier (#105)
systemfonts 1.0.4
CRAN release: 2022-02-11
- Provide a fallback solution to the setup of the CRAN windows builder so that fonts can be discovered (#87)
systemfonts 1.0.1
CRAN release: 2021-02-09
- Fix a bug in font matching on Windows when matching monospace fonts
- Fix a bug in
reset_font_cache()
on mac that would cause a system crash if the cache was not filled in advance (#67)
systemfonts 1.0.0
CRAN release: 2021-02-01
- Tweak size determination for non-scalable fonts
- Fix bug when switching between scalable and non-scalable fonts in the cache
- Add utility for querying font fallbacks at both the R and C level
- Add C-level API for finding emoji embeddings in strings
- Add utility for getting weight of font from C code
- Add utility for getting family name of font from C code
- Add font weight and width to the output of
font_info()
systemfonts 0.3.2
CRAN release: 2020-09-29
- Fix compiled code for old R versions
- Changes to comply with next cpp11 version
systemfonts 0.3.0
CRAN release: 2020-09-01
- Added
get_cached_face()
so that other packages might retrieve FT_Face objects from the cache. - Adapted cpp11
- Add infrastructure for setting OpenType font features on a registered font with either
register_font()
or the newregister_variant()
, along with thefont_feature()
function.
systemfonts 0.2.3
CRAN release: 2020-06-09
- Replace the buggy Freetype cache subsystem with own implementation
- Fix indexing bug in
glyph_metrics()
systemfonts 0.2.2
CRAN release: 2020-05-14
- Fix remaining valgrind issues by fixing the included font-manager code
- Rewrite the text shaping algorithm to make it more future proof
- Work around a nasty freetype bug in their cache subsystem
systemfonts 0.2.0
CRAN release: 2020-04-16
- Add
string_widths_dev()
andstring_metrics_dev()
to request the current graphic device for string widths and metrics. - Add system for registering non-system fonts for look-up.
- systemfonts will now detect user-installed fonts on Windows (possible after the 1806 update)
- Font lookup is now cached for faster performance. The caching will get flushed when new fonts are added to the registry, or manually with
reset_font_cache()
- Systemfonts now provide querying of font information with
font_info()
andglyph_info()
- Basic string shaping is now provided with
shape_string()
- Line width calculation is now available with
string_width()
(ignores presence of newlines, useshape_string()
for more complicated strings) - Added
str_split_emoji()
for splitting of strings into substrings of emoji and non-emoji glyphs - Provide a header file for easy use from within C in other packages
- Fix memory management issues on Mac
- Fix handling of erroneous font files on windows
systemfonts 0.1.1
CRAN release: 2019-07-01
- Fix compilation on systems with a very old fontconfig version (Solaris)
systemfonts 0.1.0
CRAN release: 2019-06-28
- First version with
match_font()
andsystem_fonts()
capabilities. More to come. - Added a
NEWS.md
file to track changes to the package.