Wqy-microhei

0 views
Skip to first unread message

Sourabh Doherty

unread,
Aug 5, 2024, 1:15:49 AM8/5/24
to icelatar
Sinceupgrading Alteryx Server Gallery to 2019.3.2.15763 the temp directory on our C drive (not the gallery settings specified temp drive or folder) has been filled with a 4MB file called wqy-microhei.ttc.

We had several of our scheduled workflows abort last night because there wasn't enough space to write temp files. Everything related to the Gallery should be written to our drive, but C: was filled with several Gigabytes of the wqy-microhei.ttc file in the temp directory on C:


I don't think this is harmless. It is ticking time bomb. I have deleted all those directories now (more than 60 GB), but I need to check our hard disk every now and then, because obviously this is bound to happen again.


My original answer was not considering the case of heavily used environments which may lead to the production of a lot of file. Also, current workaround is to manually removed files wqy-microhei.ttc and associated folder, I would suggest to contact sup...@alteryx.com for follow-up.


Search in specific suite:[focal][focal-updates][focal-backports][jammy][jammy-updates][jammy-backports][mantic][mantic-updates][mantic-backports][noble][noble-updates][noble-backports][oracular]Limit search to a specific architecture: [i386] [amd64] [powerpc] [arm64] [armhf] [ppc64el] [riscv64] [s390x] You have searched for packages that names contain fonts-wqy-microhei in all suites, all sections, and all architectures.Found 1 matching packages.


In many cases, using non-standard fonts in R graphs is not an easytask, especially for PDF devices. For example, creating PDF graphs withChinese characters may take a lot of extra work. Also, R users may haveinstalled various fonts in their systems, but for many graphics devicesthere is no direct and portable way to make use of those fonts.


Now a new solution, the showtext package, is able tosupport more font formats and more graphics devices, and avoids usingexternal software such as Ghostscript. showtext makesit even easier to use various types of fonts (TrueType, OpenType, Type1, web fonts, etc.) in R graphs.


In this example we first load fonts that are available online throughGoogle Fonts, and then tell R torender text using showtext by calling theshowtext_auto() function. All the remaining part is exactlythe same as the usual plotting commands.


If you want to have finer control on which part of the code shoulduse showtext, functions showtext_begin()and showtext_end() will help. Only plotting functionsenclosed by this pair of calls will use showtext, andothers not. For example, to change the title font only, we can do:


For other OS, you may not have the simhei.ttf font file,but there is no difficulty in using the alternatives. At presentfont_add() supports TrueType fonts(.ttf/.ttc) and OpenType fonts(.otf), and adding new font type is trivial as long asFreeType supports it.


Also, there are many free fonts available and accessible on the web,for instance the Google Fonts project ( ).sysfonts provides an interface to automaticallydownload and register those fonts through the functionfont_add_google(), as the example below shows.


showtext includes an open source CJK (Chinese,Japanese, and Korean) font WenQuanYi MicroHei. If you just want to show CJK text in your graph, simply specifythe wqy-microhei family name in plotting functions.


showtext renders text by converting it intocolor-filled polygonal outlines (for vector graphics) or raster images(for bitmap and on-screen graphics). Therefore, the rendered text hasthe same appearance under all platforms. People who view the graph donot need to install the font that creates the graph. Of course as aprice, the actual text information is lost in this procedure.


Previously showtext did not work well with theRStudio graphics device (RStudioGD), but starting from version 0.9, thisissue has been fixed. Simply call showtext_auto() in theRStudio session and then the plots will be displayed correctly.

3a8082e126
Reply all
Reply to author
Forward
0 new messages