资源简介
FreeType库是一个完全免费(开源)的、高质量的且可移植的字体引擎,它提供统一的接口来访问多种字体格式文件,包括TrueType, OpenType, Type1, CID, CFF, Windows FON/FNT, X11 PCF等。
代码片段和文件信息
/* */
/* UNINST - FreeType/2 uninstaller */
/* */
/* Copyright 1998 Michal Necasek */
/* */
/* UNINSTALL.CMD rewritten in C - apparently the REXX version fails */
/* when OS/2 is booted to command line. This causes problems if */
/* FreeType/2 prevents PM from starting successfully. */
/* */
/* Note: This can be compiled as 16-bit app to keep the size down. */
#define INCL_NOXLATE_WIN16
#define INCL_NOXLATE_DOS16
#define INCL_WINSHELLDATA
#define INCL_DOSMISC
#include
#include
#include
#include
char szApp[] = “PM_Font_Drivers“;
char szKey[] = “TRUETYPE“;
char szBuffer[300];
void main(void) {
ULONG ulBootDrv;
USHORT usLen = 0;
APIRET rc;
char c;
usLen = PrfQueryProfileString(HINI_USERPROFILE szApp szKey NULL
(PVOID)szBuffer 260L);
if (!strcmp(“\\OS2\\DLL\\FREETYPE.DLL“ szBuffer)) {
if(!PrfWriteProfileString(HINI_USERPROFILE szApp szKey NULL))
goto err;
printf(“FreeType/2 successfully removed.\n“);
printf(“Do you wish to restore TRUETYPE.DLL (y/n)? “);
c = getch();
if (c != ‘y‘ && c != ‘Y‘)
return;
if(!PrfWriteProfileString(HINI_USERPROFILE szApp szKey
“\\OS2\\DLL\\TRUETYPE.DLL“))
goto err;
printf(“\nTRUETYPE.DLL successfully restored“);
}
else {
printf(“FreeType/2 not installed!“);
return;
}
return;
err:
printf(“Uninstallation failed!“);
}
- 上一篇:STM32开发板的多功能电子钟设计
- 下一篇:高级信息系统项目管理师的5天修炼pdf
评论
共有 条评论