fontconfig

Cygwin 编译 ffmpeg

流过昼夜 提交于 2020-04-11 19:49:19
1、在官网下载linux下的压缩包   https://ffmpeg.zeranoe.com/builds/source/ffmpeg/ffmpeg-3.2.4.tar.xz 2、进入cygwin,假定将压缩包放在了cygwin的 bin\ffmpeg-3.2.4.tar目录下 执行如下指令进行文件解压 cd / bin cd ffmpeg - 3.2 . 4 . tar / xz -d ffmpeg- 3.2 . 4 . tar .xz tar -xvf ffmpeg- 3.2 . 4 . tar cd ffmpeg - 3.2 . 4 / 3、编译 shared模式编译 ./configure --disable-static --enable-shared --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -

Manjaro字体+wps字体

不想你离开。 提交于 2020-03-07 11:44:08
manjaro自带中文字体有缺陷,wps字体自带宋体等字体需要替换才能使用,因此安装以下字体内容。 安装wps中文语言包 sudo pacman -S wps-office-mui-zh-cn Manjaro默认的中文显示效果非常差,不美观也就罢了,还会有很多奇形怪状的字形(比如“门”,“画”等字)出现。配置字体效果非常耗费时间,如果想仔细折腾,可以参考如下几个网页: Localization/Simplified Chinese (简体中文) Font configuration (简体中文) Font Configuration/Chinese (简体中文) 我参考上面的第3个链接中的配置,做了点小修改,效果基本能够接受。先安装如下字体: sudo pacman -S ttf-roboto noto-fonts ttf- dejavu # 文泉驿 sudo pacman -S wqy-bitmapfont wqy-microhei wqy-microhei-lite wqy- zenhei # 思源字体 sudo pacman -S noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts 创建文件 .config/fontconfig/fonts.conf ,加入下面的配置: <

openoffice 部署步骤

柔情痞子 提交于 2020-02-28 13:42:32
部署步骤: 1.tar -zxvf Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz 2.yum localinstall openoffice4.1.6-redhat-menus-4.1.6-9790.noarch.rpm 3.运行:/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard 4.出错:/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory 5.yum install libXext.x86_64 6.no suitable windowing system found, exiting 7.yum groupinstall "X Window System" 8.nohup /opt/openoffice4/program/soffice -headless -accept="socket

CentOS and fontconfig: Cannot load default config file

淺唱寂寞╮ 提交于 2019-12-24 16:39:50
问题 I'm getting following error when using imagick: Fontconfig error: Cannot load default config file My script is working but i would like to fix this (is filling up log file). OS is: # cat /etc/redhat-release CentOS release 5.10 (Final) I was looking trough internet little bit and this is causing problem: access("/etc/fonts/fonts.conf", R_OK) = -1 ENOENT (No such file or directory) Folder exists: # ls /etc/fonts/ -all total 64 drwxr-xr-x 4 root root 4096 Jul 9 2010 ./ drwxr-xr-x 86 root root

How can one find the Unicode codepoints that a font has glyphs for, on a Debian-based system?

半腔热情 提交于 2019-12-19 05:35:07
问题 From a scripting language (Python or Ruby, say) on a Debian-based system, I would like to find either one of: All the Unicode codepoints that a particular font has glyphs for All the fonts that have glyphs for a particular Unicode codepoint (Obviously either 1 or 2 can be derived form the other, so whatever is easier would be great.) I have done this in the past by running: fc-list : file charset ... and parsing the output at the end of each line, based on this code from fontconfig but it

Make Anaconda's tkinter aware of system fonts or install new fonts for Anaconda

牧云@^-^@ 提交于 2019-12-17 16:30:49
问题 I have two Python installations on my Debian Sid notebook, ⑴ the system's Python (v.2.7) with a little bunch of utility packages (including Tkinter ) and ⑵ Anaconda's Python 3. It is easy to see which (well, here how many...) fonts are available for the two Python distributions. Python 2 >>> from Tkinter import Tk >>> from tkFont import families >>> Tk(); available = families() ### Tk() is needed to have a running tcl interpreter <Tkinter.Tk instance at 0x7f977bcbfb90> >>> len(available) 3011

Tk - segfaults when I use widget (button, text)

感情迁移 提交于 2019-12-13 04:51:52
问题 I have compiled Tcl/Tk into my application. When I open my application, I get a window (due to Tk_init) which I can manipulate: > wm title . "mysh" > wm geometry . 300x300 But when I try button or any of the other widgets it segfaults > button .b Segmentation fault I loaded this in gdb and ran a back trace Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182897358752 (LWP 14112)] 0x0000000100000000 in ?? () (gdb) bt #0 0x0000000100000000 in ?? () #1 0x0000000000fe3004

Linux解决图片加水印(Graphics2D) 出现方框的问题

对着背影说爱祢 提交于 2019-12-12 16:49:06
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近在调试的时候,发现打印出来的卡证上姓名处本来应该是中文名的地方,结果出现了三个方框。初步怀疑是再给图片加水印的时候乱码了(原本服务器是Windows的,后面换成Linux)。经过排查,发现代码中有调用Graphics2D 加水印的方法。网络上借鉴了一下前辈的经验,发现是Linux上没有安装中文字体。随在Linux下安装中文字体,字体安装成功后,问题成功解决。下面列出Linux下安装中文字体的详细步骤。 1. 拷贝本地Windows系统的字体 Windows下字体的存放位置为:C:\Windows\Fonts,里面有很多字体。网上推荐选择自己喜欢的字体进行安装,我选择更为简单粗暴的方式,直接拷贝整个文件夹,打算把所有字体都安装上去。拷贝出来之后,发现也就几百兆,就这么干了。 字体文件夹拷贝出来之后,重命名为WinFronts,直接拷贝出来的文件夹应该是没有相关权限的。我也就没有去给文件夹设置权限什么的,直接通过WinS C P将文件加移动到目标Linux服务器上。将WinFronts文件夹复制到目标Linux服务器/usr/share/fonts下。 2.执行命令,安装字体 下面就是执行一系列的命令安装字体即可。 a: 去向字体文件目录,命令:cd /usr/share/fonts/WinFonts b:

Pentaho/POI throws InvocationTargetException

℡╲_俬逩灬. 提交于 2019-12-11 10:59:54
问题 I am trying to upgrade all my java application to openJDK11 ( from Oracle 8 ). and I notice one problem in my reporting server which use Pentaho. It seems that the Excel autosize feature requires libfontconfig.so in openJDK11, however I can find the module at /usr/lib64/libfontconfig.so. Any way to solve this? 2019/04/18 19:22:38 - GetReportJSon.0 - Finished reading query, closing connection. 2019/04/18 19:22:38 - GetReportJSon.0 - Finished processing (I=1, O=0, R=0, W=2, U=0, E=0) java.lang

Could not find or load the Qt platform plugin “xcb” on Archlinux (Write! AppImage)

隐身守侯 提交于 2019-12-11 01:31:11
问题 Trying to install the Write! AppImage on Arch Linux with qt5 installed, freetype2 2.9.1 and fontconfig 2:2.13.1+12+g5f5ec56-1 [levi@astize Write!]$ ./write This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". Available platform plugins are: xcb. Reinstalling the application may fix this problem. Aborted (core dumped) While running with QT_DEBUG_PLUGINS=1 [levi@astize Write!]$ ./write QFactoryLoader::QFactoryLoader() checking directory path "