当前位置:   article > 正文

字库font使用_font字体库

font字体库

windows字体位置        C:\Windows\Fonts

linux字体位置  /usr/share/fonts/DroidSansFallback.ttf

库文件libfont.a

链接:https://pan.baidu.com/s/1BYamH8s_v54IlSrvQe21hg?pwd=mft7
提取码:mft7

font.h

  1. #ifndef __font_h__
  2. #define __font_h__
  3. #include <stdio.h>
  4. #include <sys/types.h>
  5. #include <sys/stat.h>
  6. #include <fcntl.h>
  7. #include <stdlib.h>
  8. #include <sys/mman.h>
  9. #include<unistd.h>
  10. #define color u32
  11. #define getColor(a, b, c, d) (a|b<<8|c<<16|d<<24)
  12. typedef unsigned char u8;
  13. typedef unsigned short u16;
  14. typedef unsigned int u32;
  15. typedef unsigned long long u64;
  16. typedef char s8;
  17. typedef short s16;
  18. typedef int s32;
  19. typedef long long s64;
  20. typedef struct stbtt_fontinfo
  21. {
  22. void * userdata;
  23. unsigned char * data; // pointer to .ttf file
  24. int fontstart; // offset of start of font
  25. int numGlyphs;
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/48439
推荐阅读
相关标签
  

闽ICP备14008679号