freetype

FreeType how to render special chars like ü ä ö?

余生长醉 提交于 2021-02-16 09:16:37
问题 I am stuck at rendering text with FreeType. Especially non-ascii chars give me a headache. After some trial and error I managed to render some text, but my umlauts do not show: std::string text = "Hauptmenü"; for(std::string::iterator it = text.begin(); it != text.end(); ++it) { std::cout << *it; FT_Face face = loadFace(faceName); FT_Set_Pixel_Sizes(face, 0, fontSize); if(FT_Load_Char(face, *it, FT_LOAD_DEFAULT)) { std::cout << "Could not load character '" << character << "'" << std::endl; }

Centos7 编译安装 PHP7

柔情痞子 提交于 2020-12-19 07:21:36
1.下载php7 wget -O php7.tar.gz http://cn2.php.net/get/php-7.1.1.tar.gz/from/this/mirror 2.解压php7 tar -xvf php7.tar.gz 3.进入php目录 cd php-7.0.4 4.安装依赖包 # 直接复制下面一行(不包括本行) yum install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel libcurl libcurl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel gmp gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt libxslt-devel yum install libxml2 libxml2-devel openssl openssl-devel libcurl libcurl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libmcrypt libmcrypt-devel -y 5.编译配置(如果出现错误

【openJDK系列1】macos编译openJDK 8

左心房为你撑大大i 提交于 2020-11-24 16:00:52
背景 因为之前一直在研究jdk源码,但是基于自己比较懒的缘故,一直没有手动编译过jdk源码,也就只是看看书本上的东西,似懂非懂的看懂了也就草草了事了,这次终于下定决心编译一把openJDK8的源码 基础环境 macos High Sierra 10.13.1 openJDK 8 编译 直接找到 http://hg.openjdk.java.net/ ,执行以下命令 # 安装mercurial brew install mercurial # clone openJDK源码 hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8 当然在 git JDK 也有对应的JDK源码,git clone之后checkout到对应的tag上进行编译也是可以的 git clone https://github.com/openjdk/jdk git checkout -b openjdk8 jdk8-b80 注意如果是用hg clone的方式我们还得执行sh ./get_source.sh命令来获取额外的文件,对于Mercurial和Git的区别,网上一大堆,网友可以自行查找,操作方式可以参考 hg git 操作 我们这里选择hg clone的方式,执行 cd openjdk8 && sh ./get_source.sh 安装依赖 brew