The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
register_stixmath(), which registers it with ‘systemfonts’,
and stixmath_file(), which returns the path of the
file.strings_sizes() has a new argument
kerning. With kerning = TRUE, the width
includes the kerning stored in the font file (‘kerx’, ‘GPOS’ or ‘kern’
tables), as drawn by devices that kern (ragg, svglite, ggiraph,
cairo_pdf()). The tables are read with FreeType, without
text shaping and without new dependency. Ligatures and contextual
kerning are not applied: see the section “Kerning” of
?strings_sizes. The default, kerning = FALSE,
keeps the previous values.font_line_metrics(): the part of a line of
text above its baseline, the part below and the distance between the
baselines of two lines in single spacing, read from the ‘OS/2’ and
‘hhea’ tables of the font file, with the rule of ‘Microsoft Word’. They
depend on the font only, unlike the ascent and descent of
strings_sizes(), which are those of the ink of a
string.strings_sizes(), str_metrics() and
m_str_extents() no longer use Cairo. The metrics are read
with FreeType from the font file, without scaling or hinting: the width
is the sum of the glyph advances of the ‘hmtx’ table and the ascent and
descent are those of the box enclosing the ink of the glyphs. The values
are unchanged and only depend on the font file, so the same file gives
the same values on every platform.str_metrics(NA) now returns NA metrics, as
strings_sizes() does, instead of measuring the string
"NA".SystemRequirements: freetype2). On Windows, FreeType comes
from Rtools, or from the r-windows bundles for older R versions, as for
‘systemfonts’.version_cairo() is deprecated and returns
NULL.match_family() is deprecated, use
systemfonts::match_fonts() instead.set_dummy_conf(), deprecated since version 0.4.4 and
without any effect, is removed.font_family_exists(), sys_fonts(),
font_set_liberation() and font_set_auto() no
longer list all the installed fonts on each call (#84). Fonts registered
during the session are still found; new function
sys_fonts_reset() refreshes the list after a font is
installed on the system.m_str_extents() is deprecated, use
strings_sizes() instead.debug of
match_family() is removed.file.copy() error (#82).font_set(),
font_set_liberation(), and font_set_auto()
provide a unified way to configure font aliases, register fonts with
‘systemfonts’, and generate ‘htmlDependency’ objects in a single step.
Helper functions font_google() and
font_liberation() declare individual font sources.register_liberationsans(),
register_liberationserif() and
register_liberationmono() gain a name
parameter to register Liberation fonts under a custom family name
(e.g. "sans", "serif", "mono").
Default values are unchanged.str_extents().LinkingTo: gdtools anymore.strings_sizes(): italic text was
incorrectly measured as bold-italic (face 4 instead of face 3).strings_sizes() now re-uses Cairo text measurement
instead of systemfonts::string_metrics_dev(). Callers no
longer need a ragg device open for accurate metrics. The measurements
are accurate for devices that use Cairo or ‘systemfonts’ (ragg, svglite,
ggiraph, cairo_pdf(), …).set_dummy_conf() that should be removed from
the package in a later version.raster_* functions not used anymoreinstall_gfont_script() can now directly generate a
script file ready to be executed to install a ‘Google Font’, use
argument file.gfonts::get_all_fonts(). This should
enable usage for those with no access to website used by ‘gfonts’.installed_gfonts() to list installed font
from ‘Google’glyphs_match to test whether glyphs in
strings are all existing in a font table or not.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.