unifont()
's cache
argument now defaults to getOption("unifont.cache", NULL)
and
if cache = NULL
we now read in a cache file if it exists but if it does not
exist then we don't write a cache file.unifont()
's new argument cache
allows one to read/write precompiled versions of the fonts
from/to tools::R_user_dir("hexfont", "cache")
(#8).
It is much faster to read such a cached pre-compiled font than recompile it from scratch.
{hexfont}
now depends on R (>= 4.0.0) (which was when tools::R_user_dir()
was introduced).unifont_version()
returns the GNU Unifont version number this package packed their hex
files from (#6).{bittermelon}
so the examples/tests continue to work after a breaking change
in Unicode::u_char_property()
's behavior introduced in {Unicode}
v15.1.0-1 (#7).unifont_combining()
returns a character vector of Unicode code points that are "combining" glyphs (#4).unifont()
's new argument ucp
can restrict which Unicode code points are read (which can be faster than loading all of them).xz
instead gzip
and now end with a .xz
instead of .gz
.
This reduces file sizes by about a third.
Please note the function unifont()
is still backwards compatible.precompiled
directory and
the hex fonts are all compressed by gzip
but other than that the hex fonts are otherwise unchanged.unifont()
loads in several GNU Unifont hex files as a
single bittermelon::bm_font()
object.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.