Changeset 4760
- Timestamp:
- Dec 6, 2000, 4:39:56 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/gdi32/font.cpp ¶
r4492 r4760 1 /* $Id: font.cpp,v 1.1 4 2000-10-16 22:26:53 sandervlExp $ */1 /* $Id: font.cpp,v 1.15 2000-12-06 15:39:56 phaller Exp $ */ 2 2 3 3 /* … … 18 18 * 19 19 */ 20 21 /***************************************************************************** 22 * Includes * 23 *****************************************************************************/ 20 24 21 25 #include <odin.h> … … 397 401 //****************************************************************************** 398 402 //****************************************************************************** 399 int WIN32API EnumFontsA( HDC arg1, LPCSTR arg2, FONTENUMPROCA arg3, LPARAM arg4) 400 { 403 ODINFUNCTION4(int, EnumFontsA, 404 HDC, arg1, 405 LPCSTR, arg2, 406 FONTENUMPROCA, arg3, 407 LPARAM, arg4) 408 { 409 //@@@PH shouldn't this rather be O32_EnumFonts ? 401 410 return EnumFontFamiliesA(arg1, arg2, arg3, arg4); 402 411 } 403 412 //****************************************************************************** 404 413 //****************************************************************************** 405 int WIN32API EnumFontsW( HDC arg1, LPCWSTR arg2, FONTENUMPROCW arg3, LPARAM arg4) 406 { 414 ODINFUNCTION4(int, EnumFontsW, 415 HDC, arg1, 416 LPCWSTR, arg2, 417 FONTENUMPROCW, arg3, 418 LPARAM, arg4) 419 { 420 //@@@PH shouldn't this rather be O32_EnumFonts ? 407 421 return EnumFontFamiliesW(arg1, arg2, arg3, arg4); 408 422 } 409 423 //****************************************************************************** 410 424 //****************************************************************************** 411 int WIN32API EnumFontFamiliesA(HDC arg1, 412 LPCSTR arg2, 413 FONTENUMPROCA arg3, 414 LPARAM arg4) 425 ODINFUNCTION4(int, EnumFontFamiliesA, 426 HDC, arg1, 427 LPCSTR, arg2, 428 FONTENUMPROCA, arg3, 429 LPARAM, arg4) 415 430 { 416 431 ENUMUSERDATA enumData; … … 428 443 //****************************************************************************** 429 444 //****************************************************************************** 430 int WIN32API EnumFontFamiliesW(HDC arg1, 431 LPCWSTR arg2, 432 FONTENUMPROCW arg3, 433 LPARAM arg4) 445 ODINFUNCTION4(int, EnumFontFamiliesW, 446 HDC, arg1, 447 LPCWSTR, arg2, 448 FONTENUMPROCW, arg3, 449 LPARAM, arg4) 434 450 { 435 451 ENUMUSERDATA enumData; … … 449 465 //****************************************************************************** 450 466 //****************************************************************************** 451 INT WIN32API EnumFontFamiliesExA( HDC arg1, LPLOGFONTA arg2, FONTENUMPROCEXA arg3, LPARAM arg4, DWORD dwFlags) 467 ODINFUNCTION5(INT, EnumFontFamiliesExA, 468 HDC, arg1, 469 LPLOGFONTA, arg2, 470 FONTENUMPROCEXA, arg3, 471 LPARAM, arg4, 472 DWORD, dwFlags) 452 473 { 453 474 ENUMUSERDATA enumData; … … 466 487 //****************************************************************************** 467 488 //****************************************************************************** 468 INT WIN32API EnumFontFamiliesExW( HDC arg1, LPLOGFONTW arg2, FONTENUMPROCEXW arg3, LPARAM arg4, DWORD dwFlags) 489 ODINFUNCTION5(INT, EnumFontFamiliesExW, 490 HDC, arg1, 491 LPLOGFONTW, arg2, 492 FONTENUMPROCEXW, arg3, 493 LPARAM, arg4, 494 DWORD, dwFlags) 469 495 { 470 496 ENUMUSERDATA enumData; … … 485 511 //****************************************************************************** 486 512 //****************************************************************************** 487 DWORD WIN32API GetFontData(HDC hdc, DWORD dwTable, DWORD dwOffset, LPVOID lpvBuffer, 488 DWORD dbData) 513 ODINFUNCTION5(DWORD, GetFontData, 514 HDC, hdc, 515 DWORD, dwTable, 516 DWORD, dwOffset, 517 LPVOID, lpvBuffer, 518 DWORD, dbData) 489 519 { 490 520 dprintf(("GDI32: GetFontData, not implemented (GDI_ERROR)\n")); … … 493 523 //****************************************************************************** 494 524 //****************************************************************************** 495 int WIN32API AddFontResourceA( LPCSTR szFont) 525 ODINFUNCTION1(int, AddFontResourceA, 526 LPCSTR, szFont) 496 527 { 497 528 dprintf(("GDI32: AddFontResourceA %s", szFont)); … … 500 531 //****************************************************************************** 501 532 //****************************************************************************** 502 int WIN32API AddFontResourceW( LPCWSTR szFont) 533 ODINFUNCTION1(int, AddFontResourceW, 534 LPCWSTR, szFont) 503 535 { 504 536 char *astring = UnicodeToAsciiString((LPWSTR)szFont); … … 513 545 //****************************************************************************** 514 546 //****************************************************************************** 515 BOOL WIN32API RemoveFontResourceA( LPCSTR arg1) 547 ODINFUNCTION1(BOOL, RemoveFontResourceA, 548 LPCSTR, arg1) 516 549 { 517 550 dprintf(("GDI32: RemoveFontResourceA %s\n", arg1)); … … 520 553 //****************************************************************************** 521 554 //****************************************************************************** 522 BOOL WIN32API RemoveFontResourceW(LPCWSTR szFont) 555 ODINFUNCTION1(BOOL, RemoveFontResourceW, 556 LPCWSTR, szFont) 523 557 { 524 558 char *astring = UnicodeToAsciiString((LPWSTR)szFont); … … 546 580 *****************************************************************************/ 547 581 548 BOOL WIN32API CreateScalableFontResourceA(DWORD fdwHidden, 549 LPCSTR lpszFontRes, 550 LPCSTR lpszFontFile, 551 LPCSTR lpszCurrentPath) 552 { 553 dprintf(("GDI32: CreateScalableFontResourceA(%08xh,%08xh,%08xh,%08xh) not implemented.\n", 554 fdwHidden, 555 lpszFontRes, 556 lpszFontFile, 557 lpszCurrentPath)); 582 ODINFUNCTION4(BOOL, CreateScalableFontResourceA, 583 DWORD, fdwHidden, 584 LPCSTR, lpszFontRes, 585 LPCSTR, lpszFontFile, 586 LPCSTR, lpszCurrentPath) 587 { 588 dprintf(("GDI32: CreateScalableFontResourceA not implemented.\n")); 558 589 559 590 return (FALSE); … … 577 608 *****************************************************************************/ 578 609 579 BOOL WIN32API CreateScalableFontResourceW(DWORD fdwHidden, 580 LPCWSTR lpszFontRes, 581 LPCWSTR lpszFontFile, 582 LPCWSTR lpszCurrentPath) 583 { 584 dprintf(("GDI32: CreateScalableFontResourceW(%08xh,%08xh,%08xh,%08xh) not implemented.\n", 585 fdwHidden, 586 lpszFontRes, 587 lpszFontFile, 588 lpszCurrentPath)); 610 ODINFUNCTION4(BOOL, CreateScalableFontResourceW, 611 DWORD, fdwHidden, 612 LPCWSTR, lpszFontRes, 613 LPCWSTR, lpszFontFile, 614 LPCWSTR, lpszCurrentPath) 615 { 616 dprintf(("GDI32: CreateScalableFontResourceW not implemented.\n")); 589 617 590 618 return (FALSE); 591 619 } 620 621 592 622 /***************************************************************************** 593 623 * Name : DWORD GetFontLanguageInfo … … 605 635 *****************************************************************************/ 606 636 607 DWORD WIN32API GetFontLanguageInfo(HDC hdc) 637 ODINFUNCTION1(DWORD, GetFontLanguageInfo, 638 HDC, hdc) 608 639 { 609 640 dprintf(("GDI32: GetFontLanguageInfo(%08xh) not implemented.\n", … … 612 643 return (0); 613 644 } 645 646 614 647 /************************************************************************* 615 648 * TranslateCharsetInfo [GDI32.382] … … 626 659 * TRUE on success, FALSE on failure. 627 660 * 661 * 662 * LPDWORD lpSrc, if flags == TCI_SRCFONTSIG: pointer to fsCsb of a FONTSIGNATURE 663 * if flags == TCI_SRCCHARSET: a character set value 664 * if flags == TCI_SRCCODEPAGE: a code page value 665 * LPCHARSETINFO lpCs, structure to receive charset information 666 * DWORD flags determines interpretation of lpSrc 628 667 */ 629 BOOL WIN32API TranslateCharsetInfo( 630 LPDWORD lpSrc, /* 631 if flags == TCI_SRCFONTSIG: pointer to fsCsb of a FONTSIGNATURE 632 if flags == TCI_SRCCHARSET: a character set value 633 if flags == TCI_SRCCODEPAGE: a code page value 634 */ 635 LPCHARSETINFO lpCs, /* structure to receive charset information */ 636 DWORD flags /* determines interpretation of lpSrc */ 637 ) { 668 ODINFUNCTION3(BOOL, TranslateCharsetInfo, 669 LPDWORD, lpSrc, 670 LPCHARSETINFO, lpCs, 671 DWORD, flags) 672 { 638 673 int index = 0; 639 674 switch (flags) {
Note:
See TracChangeset
for help on using the changeset viewer.