/*********************************************************************** * FontStyleEnumProc (COMMDLG.18) */ INT16 WINAPI FontStyleEnumProc16( SEGPTR logfont, SEGPTR metrics, UINT16 nFontType, LPARAM lParam ) { HWND hcmb2=HWND_32(LOWORD(lParam)); HWND hcmb3=HWND_32(HIWORD(lParam)); HWND hDlg=GetParent(hcmb3); LPCHOOSEFONT16 lpcf; LOGFONT16 *lplf = MapSL(logfont); TEXTMETRIC16 *lpmtrx16 = MapSL(metrics); ENUMLOGFONTEXW elf32w; NEWTEXTMETRICEXW nmtrx32w; lpcf = (LPCHOOSEFONT16)GetPropW(hDlg, strWineFontData16); FONT_LogFont16To32W(lplf, &(elf32w.elfLogFont)); FONT_Metrics16To32W(lpmtrx16, &nmtrx32w); return AddFontStyle(&elf32w, &nmtrx32w, nFontType, (LPCHOOSEFONTW)lpcf->lpTemplateName, hcmb2, hcmb3, hDlg, TRUE); }
void MarkupTextManager::SetFontStyle(StringId style, const Asset& font, unsigned short color, unsigned short bgcolor, unsigned char opacity) { RemoveFontStyle(style); AddFontStyle(style,font,color,opacity,bgcolor); }
void MarkupTextManager::SetFontStyle(StringId style, const Asset& font, unsigned short color) { RemoveFontStyle(style); AddFontStyle(style,font,color,0,0xffff); }