⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fonts_w.c

📁 A free MS Word reader for Linux and RISC OS. Antiword converts the files from Word 2, 6, 7, 97, 2000
💻 C
字号:
/* * fonts_u.c * Copyright (C) 1999-2001 A.J. van Os; Released under GPL * modifed by Vince * Description: * Functions to deal with fonts (Windows version) */#include <stdio.h>#include <stdlib.h>#include <string.h>#include "antiword.h"#include "fontinfo.h"/* Don't use fonts, just plain text */static BOOL		bUsePlainText = TRUE;/* Which character set should be used */static encoding_type	eEncoding = encoding_neutral;/* * pOpenFontTableFile - open the Font translation file * * Returns the file pointer or NULL */FILE *pOpenFontTableFile(void){	return NULL;	/* TBD .. new code , probably based on		int EnumFontFamiliesEx(			HDC hdc,                           // handle to device context			LPLOGFONT lpLogfont,               // pointer to logical font information			FONTENUMPROC lpEnumFontFamExProc,  // pointer to callback function			LPARAM lParam,                     // application-supplied data			DWORD dwFlags                      // reserved; must be zero			); */} /* end of pOpenFontTableFile *//* * vCloseFont - close the current font, if any */voidvCloseFont(void){} /* end of vCloseFont *//* * tOpenFont - make the given font the current font * * Returns the font reference number */draw_fontreftOpenFont(int iWordFontNumber, unsigned char ucFontstyle, int iWordFontsize){		/* No outline fonts, no postscript just plain text */	return (draw_fontref)0;} /* end of tOpenFont *//* * tOpenTableFont - make the table font the current font * * Returns the font reference number */draw_fontreftOpenTableFont(int iWordFontsize){		/* No outline fonts, no postscript just plain text */		return (draw_fontref)0;} /* end of tOpenTableFont *//* * szGetFontname - get the fontname */const char *szGetFontname(draw_fontref tFontRef){	return "Dummy font name";} /* end of szGetFontname *//* * lComputeStringWidth - compute the string width * * Note: the fontsize is given in half-points! *       the stringlength is given in bytes, not characters! * * Returns the string width in millipoints */longlComputeStringWidth(char *szString, int iStringLength,		draw_fontref tFontRef, int iFontsize){	return iStringLength * 30; // enough to build only} /* end of lComputeStringWidth */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -