* README: Formatting. * Jamfile: Fix typo. * src/cff/cffparse.c: Move error code #defines to... * include/freetype/internal/cfferrs.h: This file. * src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffload.c: Replaced `FT_Err_*' with `CFF_Err_*'. * src/cid/cidparse.c: Replaced `FT_Err_*' with `T1_Err_*'. * src/psaux/psobjs.c, src/psaux/t1decode.c: Ditto. * src/sfnt/sfobcs.c, src/sfnt/ttload.c: Replaced `FT_Err_*' with `TT_Err_*'. * src/truetype/ttgload.c, src/truetype/ttobjs.c: Ditto. * src/type1/t1gload.c, src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c: Replaced `FT_Err_*' with `T1_Err_*'. * include/freetype/internal/cfferrs.h: Add `CFF_Err_Unknown_File_Format'. * include/freetype/internal/t1errors.h: Add `T1_Err_Unknown_File_Format'. * include/freetype/internal/tterrors.h: Add `TT_Err_Unknown_File_Format'. * src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset' references. * src/psaux/psobjs.c: Include `FT_INTERNAL_TYPE1_ERRORS_H'. * src/cff/cffobjs.c (CFF_Init_Face, CFF_Done_Face): Use FT_LOCAL_DEF. * src/cid/cidobjs.c (CID_Done_Driver): Ditto. * src/trutype/ttobjs.c (TT_Init_Face, TT_Done_Face, TT_Init_Size): Ditto. * src/type1/t1objs.c (T1_Done_Driver): Ditto. * src/pcf/pcfdriver.c (PCF_Done_Face): Ditto. * src/pcf/pcf.h: Use FT_LOCAL for `PCF_Done_Face'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
diff --git a/ChangeLog b/ChangeLog
index 49af850..14407f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,8 +2,43 @@
* CHANGES: Reformatted, minor fixes.
* TODO: Updated.
+ * README: Formatting.
* include/freetype/freetype.h: Formatting.
+ * Jamfile: Fix typo.
+
+ * src/cff/cffparse.c: Move error code #defines to...
+ * include/freetype/internal/cfferrs.h: This file.
+ * src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffload.c: Replaced
+ `FT_Err_*' with `CFF_Err_*'.
+ * src/cid/cidparse.c: Replaced `FT_Err_*' with `T1_Err_*'.
+ * src/psaux/psobjs.c, src/psaux/t1decode.c: Ditto.
+ * src/sfnt/sfobcs.c, src/sfnt/ttload.c: Replaced `FT_Err_*' with
+ `TT_Err_*'.
+ * src/truetype/ttgload.c, src/truetype/ttobjs.c: Ditto.
+ * src/type1/t1gload.c, src/type1/t1load.c, src/type1/t1objs.c,
+ src/type1/t1parse.c: Replaced `FT_Err_*' with `T1_Err_*'.
+
+ * include/freetype/internal/cfferrs.h: Add
+ `CFF_Err_Unknown_File_Format'.
+ * include/freetype/internal/t1errors.h: Add
+ `T1_Err_Unknown_File_Format'.
+ * include/freetype/internal/tterrors.h: Add
+ `TT_Err_Unknown_File_Format'.
+
+ * src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset'
+ references.
+ * src/psaux/psobjs.c: Include `FT_INTERNAL_TYPE1_ERRORS_H'.
+
+ * src/cff/cffobjs.c (CFF_Init_Face, CFF_Done_Face): Use
+ FT_LOCAL_DEF.
+ * src/cid/cidobjs.c (CID_Done_Driver): Ditto.
+ * src/trutype/ttobjs.c (TT_Init_Face, TT_Done_Face, TT_Init_Size):
+ Ditto.
+ * src/type1/t1objs.c (T1_Done_Driver): Ditto.
+ * src/pcf/pcfdriver.c (PCF_Done_Face): Ditto.
+ * src/pcf/pcf.h: Use FT_LOCAL for `PCF_Done_Face'.
+
2001-04-02 Tom Kacvinsky <tjk@ams.org>
* src/sfnt/ttload.c (TT_Load_Metrics): Fix an improper pointer
diff --git a/Jamfile b/Jamfile
index 74492d3..3457a5b 100644
--- a/Jamfile
+++ b/Jamfile
@@ -23,7 +23,7 @@ SubDirHdr += $(FT2_INCLUDE) ;
# uncomment the following line if you want to build individual source files
# for each FreeType 2 module.
#
-# FT2_MULTI = true;
+# FT2_MULTI = true ;
# the file <freetype/config/ft2build.h> is used to define macros that are
# later used in #include statements.. it needs to be parsed in order to
diff --git a/README b/README
index c69ddc8..2510d1c 100644
--- a/README
+++ b/README
@@ -1,20 +1,19 @@
FreeType 2.0.2
==============
-
- Please read the CHANGES file, it contains IMPORTANT INFORMATION
- Read the files "INSTALL" or "docs/BUILD" for installation instructions
+ Please read the CHANGES file, it contains IMPORTANT INFORMATION.
+
+ Read the files "INSTALL" or "docs/BUILD" for installation instructions.
Note that the FreeType 2 documentation is now available as a separate
- package from our sites. See:
-
- ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.0.2.tar.bz2
- ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.0.2.tar.gz
- ftp://ftp.freetype.org/pub/freetype2/ftdoc202.zip
+ package from our sites. See:
- Enjoy.. :-)
+ ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.0.2.tar.bz2
+ ftp://ftp.freetype.org/pub/freetype2/ftdocs-2.0.2.tar.gz
+ ftp://ftp.freetype.org/pub/freetype2/ftdoc202.zip
+ Enjoy!
- The FreeType Team
+ The FreeType Team
diff --git a/builds/unix/ft2unix.h b/builds/unix/ft2unix.h
index 0099f09..accdb2b 100644
--- a/builds/unix/ft2unix.h
+++ b/builds/unix/ft2unix.h
@@ -21,36 +21,37 @@
/* This is a Unix-specific version of <ft2build.h> that should be used */
/* exclusively *after* installation of the library. */
/* */
- /* it assumes that "/usr/local/include/freetype2", or wathever is */
- /* returned by the "freetype-config --cflags" command is in your */
- /* compilation include path.. */
+ /* It assumes that "/usr/local/include/freetype2" (or wathever is */
+ /* returned by the "freetype-config --cflags" command) is in your */
+ /* compilation include path. */
/* */
- /* We don't need to do anything special in this release. However, for */
+ /* We don't need to do anything special in this release. However, for */
/* FreeType 2.1, the following installation changes will be performed: */
/* */
- /* - the content of "freetype-2.1/include/freetype" will be */
- /* installed to "/usr/local/include/freetype2" instead of */
- /* "/usr/local/include/freetype2/freetype" */
+ /* - The contents of "freetype-2.1/include/freetype" will be installed */
+ /* to "/usr/local/include/freetype2" instead of */
+ /* "/usr/local/include/freetype2/freetype". */
/* */
- /* - this file will #include <freetype2/config/ftheader.h>, instead */
- /* of <freetype/config/ftheader.h> */
+ /* - This file will #include <freetype2/config/ftheader.h>, instead */
+ /* of <freetype/config/ftheader.h>. */
/* */
- /* - the content of "ftheader.h" will be processed through sed to */
- /* replace all "<freetype/xxx>" with "<freetype2/xxxx>" */
+ /* - The contents of "ftheader.h" will be processed with `sed' to */
+ /* replace all "<freetype/xxx>" with "<freetype2/xxx>". */
/* */
- /* - adding "/usr/local/include/freetype2" to your compilation */
- /* include path will not be necessary anymore. The command */
- /* "freetype-config --cflags" will return an empty string */
+ /* - Adding "/usr/local/include/freetype2" to your compilation include */
+ /* path will not be necessary anymore. The command */
+ /* "freetype-config --cflags" will return an empty string. */
/* */
- /* - client applications who adhere to the new inclusion scheme */
- /* WILL NOT NEED TO BE MODIFIED to compile with FT 2.1 !! */
+ /* - Client applications which adhere to the new inclusion scheme */
+ /* WILL NOT NEED TO BE MODIFIED to compile with FT 2.1! */
/* */
/*************************************************************************/
+
#ifndef __FT2_BUILD_UNIX_H__
#define __FT2_BUILD_UNIX_H__
-/* "/usr/local/include/freetype2" must be in your current inclusion path */
+ /* "/usr/local/include/freetype2" must be in your current inclusion path */
#include <freetype/config/ftheader.h>
#endif /* __FT2_BUILD_UNIX_H__ */
diff --git a/include/freetype/internal/cfferrs.h b/include/freetype/internal/cfferrs.h
index b6588d4..c84e875 100644
--- a/include/freetype/internal/cfferrs.h
+++ b/include/freetype/internal/cfferrs.h
@@ -43,6 +43,7 @@ FT_BEGIN_HEADER
/* High level API errors. */
+#define CFF_Err_Unknown_File_Format FT_Err_Unknown_File_Format
#define CFF_Err_Invalid_File_Format FT_Err_Invalid_File_Format
#define CFF_Err_Invalid_Argument FT_Err_Invalid_Argument
#define CFF_Err_Invalid_Driver_Handle FT_Err_Invalid_Driver_Handle
@@ -65,6 +66,11 @@ FT_BEGIN_HEADER
#define CFF_Err_Invalid_Composite FT_Err_Invalid_Composite
+ /* CFF parser errors. */
+
+#define CFF_Err_Stack_Underflow FT_Err_Invalid_Argument
+#define CFF_Err_Syntax_Error FT_Err_Invalid_Argument
+
/* Bytecode interpreter error codes. */
/* These error codes are produced by the TrueType */
diff --git a/include/freetype/internal/t1errors.h b/include/freetype/internal/t1errors.h
index 7bb951f..20a64ae 100644
--- a/include/freetype/internal/t1errors.h
+++ b/include/freetype/internal/t1errors.h
@@ -40,6 +40,7 @@ FT_BEGIN_HEADER
/* ----------- high level API errors -------- */
+#define T1_Err_Unknown_File_Format FT_Err_Unknown_File_Format
#define T1_Err_Invalid_File_Format FT_Err_Invalid_File_Format
#define T1_Err_Invalid_Argument FT_Err_Invalid_Argument
#define T1_Err_Invalid_Driver_Handle FT_Err_Invalid_Driver_Handle
diff --git a/include/freetype/internal/tterrors.h b/include/freetype/internal/tterrors.h
index e235d81..d4da576 100644
--- a/include/freetype/internal/tterrors.h
+++ b/include/freetype/internal/tterrors.h
@@ -43,6 +43,7 @@ FT_BEGIN_HEADER
/* High level API errors. */
+#define TT_Err_Unknown_File_Format FT_Err_Unknown_File_Format
#define TT_Err_Invalid_File_Format FT_Err_Invalid_File_Format
#define TT_Err_Invalid_Argument FT_Err_Invalid_Argument
#define TT_Err_Invalid_Driver_Handle FT_Err_Invalid_Driver_Handle
diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c
index 1082280..6016ee1 100644
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -241,7 +241,7 @@
FT_ERROR(( " cannot open CFF & CEF fonts\n" ));
FT_ERROR(( " " ));
FT_ERROR(( " without the `PSNames' module\n" ));
- error = FT_Err_Unknown_File_Format;
+ error = CFF_Err_Unknown_File_Format;
goto Exit;
}
diff --git a/src/cff/cffload.c b/src/cff/cffload.c
index beb741e..301b2d8 100644
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -38,7 +38,6 @@
#define FT_COMPONENT trace_cffload
- static
const FT_UShort cff_isoadobe_charset[229] =
{
0,
@@ -272,7 +271,6 @@
228
};
- static
const FT_UShort cff_expert_charset[166] =
{
0,
@@ -443,7 +441,6 @@
378
};
- static
const FT_UShort cff_expertsubset_charset[87] =
{
0,
@@ -535,7 +532,6 @@
346
};
- static
const FT_UShort cff_standard_encoding[256] =
{
0,
@@ -796,7 +792,6 @@
0
};
- static
const FT_UShort cff_expert_encoding[256] =
{
0,
@@ -1588,7 +1583,7 @@
default:
FT_ERROR(( "CFF_Load_Charset: invalid table format!\n" ));
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
}
}
@@ -1610,7 +1605,7 @@
{
FT_ERROR(("CFF_Load_Charset: implicit charset not equal to\n"
"predefined charset (Adobe ISO-Latin)!\n" ));
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
}
@@ -1629,7 +1624,7 @@
{
FT_ERROR(( "CFF_Load_Charset: implicit charset not equal to\n"
"predefined charset (Adobe Expert)!\n" ));
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
}
@@ -1648,7 +1643,7 @@
{
FT_ERROR(( "CFF_Load_Charset: implicit charset not equal to\n"
"predefined charset (Adobe Expert Subset)!\n" ));
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
}
@@ -1663,7 +1658,7 @@
break;
default:
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
}
}
@@ -1704,7 +1699,7 @@
/* Check for charset->sids. If we do not have this, we fail. */
if ( !charset->sids )
{
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
}
@@ -1805,7 +1800,7 @@
default:
FT_ERROR(( "CFF_Load_Encoding: invalid table format!\n" ));
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
}
@@ -1921,7 +1916,7 @@
default:
FT_ERROR(( "CFF_Load_Encoding: invalid table format!\n" ));
- error = FT_Err_Invalid_File_Format;
+ error = CFF_Err_Invalid_File_Format;
goto Exit;
break;
}
@@ -2091,7 +2086,7 @@
font->absolute_offsize > 4 )
{
FT_TRACE2(( "[not a CFF font header!]\n" ));
- error = FT_Err_Unknown_File_Format;
+ error = CFF_Err_Unknown_File_Format;
goto Exit;
}
@@ -2189,7 +2184,7 @@
if ( dict->charstrings_offset == 0 )
{
FT_ERROR(( "CFF_Load_Font: no charstrings offset!\n" ));
- error = FT_Err_Unknown_File_Format;
+ error = CFF_Err_Unknown_File_Format;
goto Exit;
}
diff --git a/src/cff/cffload.h b/src/cff/cffload.h
index 46a06d9..9b0bc5c 100644
--- a/src/cff/cffload.h
+++ b/src/cff/cffload.h
@@ -27,6 +27,12 @@
FT_BEGIN_HEADER
+ extern const FT_UShort cff_isoadobe_charset[];
+ extern const FT_UShort cff_expert_charset[];
+ extern const FT_UShort cff_expertsubset_charset[];
+ extern const FT_UShort cff_standard_encoding[];
+ extern const FT_UShort cff_expert_encoding[];
+
FT_LOCAL
FT_String* CFF_Get_Name( CFF_Index* index,
FT_UInt element );
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index 80a8316..97e8237 100644
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -259,7 +259,7 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL
+ FT_LOCAL_DEF
FT_Error CFF_Init_Face( FT_Stream stream,
CFF_Face face,
FT_Int face_index,
@@ -336,7 +336,7 @@
/* rewind to start of file; we are going to load a pure-CFF font */
if ( FILE_Seek( 0 ) )
goto Exit;
- error = FT_Err_Ok;
+ error = CFF_Err_Ok;
}
/* now load and parse the CFF table in the file */
@@ -496,7 +496,7 @@
return error;
Bad_Format:
- error = FT_Err_Unknown_File_Format;
+ error = CFF_Err_Unknown_File_Format;
goto Exit;
}
@@ -512,7 +512,7 @@
/* <Input> */
/* face :: A pointer to the face object to destroy. */
/* */
- FT_LOCAL
+ FT_LOCAL_DEF
void CFF_Done_Face( CFF_Face face )
{
FT_Memory memory = face->root.memory;
diff --git a/src/cff/cffparse.c b/src/cff/cffparse.c
index 94f2b82..9570ce2 100644
--- a/src/cff/cffparse.c
+++ b/src/cff/cffparse.c
@@ -32,10 +32,6 @@
#define FT_COMPONENT trace_cffparse
-#define CFF_Err_Stack_Underflow FT_Err_Invalid_Argument
-#define CFF_Err_Syntax_Error FT_Err_Invalid_Argument
-
-
enum
{
cff_kind_none = 0,
diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c
index a191cec..6347fba 100644
--- a/src/cid/cidobjs.c
+++ b/src/cid/cidobjs.c
@@ -371,7 +371,7 @@
/* <Input> */
/* driver :: A handle to the target CID driver. */
/* */
- FT_LOCAL
+ FT_LOCAL_DEF
void CID_Done_Driver( CID_Driver driver )
{
FT_UNUSED( driver );
diff --git a/src/cid/cidparse.c b/src/cid/cidparse.c
index 6f0b2ca..a95a742 100644
--- a/src/cid/cidparse.c
+++ b/src/cid/cidparse.c
@@ -75,7 +75,7 @@
"%!PS-Adobe-3.0 Resource-CIDFont", 31 ) )
{
FT_TRACE2(( "[not a valid CID-keyed font]\n" ));
- error = FT_Err_Unknown_File_Format;
+ error = T1_Err_Unknown_File_Format;
}
FORGET_Frame();
diff --git a/src/pcf/pcf.h b/src/pcf/pcf.h
index af1d8fe..59c024d 100644
--- a/src/pcf/pcf.h
+++ b/src/pcf/pcf.h
@@ -160,7 +160,7 @@ FT_BEGIN_HEADER
/* XXX hack */
- static
+ FT_LOCAL
FT_Error PCF_Done_Face( PCF_Face face );
diff --git a/src/pcf/pcfdriver.c b/src/pcf/pcfdriver.c
index 59e7dc3..beb8f55 100644
--- a/src/pcf/pcfdriver.c
+++ b/src/pcf/pcfdriver.c
@@ -47,7 +47,7 @@ THE SOFTWARE.
#define FT_COMPONENT trace_pcfdriver
- static
+ FT_LOCAL_DEF
FT_Error PCF_Done_Face( PCF_Face face )
{
FT_Memory memory = FT_FACE_MEMORY( face );
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index abca45a..4d98288 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -18,6 +18,7 @@
#include <ft2build.h>
#include FT_INTERNAL_POSTSCRIPT_AUX_H
+#include FT_INTERNAL_TYPE1_ERRORS_H
#include FT_INTERNAL_DEBUG_H
#include FT_ERRORS_H
#include "psobjs.h"
@@ -120,7 +121,7 @@
table->capacity = new_size;
- return FT_Err_Ok;
+ return T1_Err_Ok;
}
@@ -155,7 +156,7 @@
if ( index < 0 || index > table->max_elems )
{
FT_ERROR(( "PS_Table_Add: invalid index\n" ));
- return FT_Err_Invalid_Argument;
+ return T1_Err_Invalid_Argument;
}
/* grow the base block if needed */
@@ -179,7 +180,7 @@
MEM_Copy( table->block + table->cursor, object, length );
table->cursor += length;
- return FT_Err_Ok;
+ return T1_Err_Ok;
}
@@ -877,13 +878,13 @@
FT_UNUSED( pflags );
#endif
- error = FT_Err_Ok;
+ error = T1_Err_Ok;
Exit:
return error;
Fail:
- error = FT_Err_Invalid_File_Format;
+ error = T1_Err_Invalid_File_Format;
goto Exit;
}
@@ -949,7 +950,7 @@
return error;
Fail:
- error = FT_Err_Invalid_File_Format;
+ error = T1_Err_Invalid_File_Format;
goto Exit;
}
@@ -1190,7 +1191,7 @@
if ( !builder->load_points )
{
outline->n_contours++;
- return FT_Err_Ok;
+ return T1_Err_Ok;
}
error = FT_GlyphLoader_Check_Points( builder->loader, 0, 1 );
diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index a19807e..a700e37 100644
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -344,7 +344,7 @@
limit = zone->limit = charstring_base + charstring_len;
ip = zone->cursor = zone->base;
- error = FT_Err_Ok;
+ error = T1_Err_Ok;
outline = builder->current;
x = builder->pos_x;
@@ -713,7 +713,7 @@
/* return now! */
FT_TRACE4(( "\n\n" ));
- return FT_Err_Ok;
+ return T1_Err_Ok;
case op_hsbw:
FT_TRACE4(( " hsbw" ));
@@ -729,7 +729,7 @@
/* the glyph's metrics (lsb + advance width), not load the */
/* rest of it; so exit immediately */
if ( builder->metrics_only )
- return FT_Err_Ok;
+ return T1_Err_Ok;
break;
@@ -753,7 +753,7 @@
/* the glyph's metrics (lsb + advance width), not load the */
/* rest of it; so exit immediately */
if ( builder->metrics_only )
- return FT_Err_Ok;
+ return T1_Err_Ok;
break;
@@ -1054,7 +1054,7 @@
{
FT_ERROR(( "T1_Decoder_Init: " ));
FT_ERROR(( "the `psnames' module is not available\n" ));
- return FT_Err_Unimplemented_Feature;
+ return T1_Err_Unimplemented_Feature;
}
decoder->psnames = psnames;
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 30f1991..31b94e6 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -199,7 +199,7 @@
sfnt = (SFNT_Interface*)FT_Get_Module_Interface( library, "sfnt" );
if ( !sfnt )
{
- error = FT_Err_Invalid_File_Format;
+ error = TT_Err_Invalid_File_Format;
goto Exit;
}
@@ -328,7 +328,7 @@
{
/* return an error if this font file has no outlines */
if ( error == TT_Err_Table_Missing && has_outline )
- error = FT_Err_Ok;
+ error = TT_Err_Ok;
else
goto Exit;
}
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index baf35be..9ef433c 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -262,7 +262,7 @@
entry_selector * 2 <= num_tables )
{
FT_TRACE2(( "TT_Load_SFNT_Header: file is not SFNT!\n" ));
- error = FT_Err_Unknown_File_Format;
+ error = TT_Err_Unknown_File_Format;
}
}
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 66aa380..7b287c5 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -251,7 +251,7 @@
FT_TRACE5(( " yMin: %4d yMax: %4d\n", loader->bbox.yMin,
loader->bbox.yMax ));
- return FT_Err_Ok;
+ return TT_Err_Ok;
}
@@ -534,7 +534,7 @@
FT_UInt n_points = outline->n_points;
FT_UInt n_ins;
TT_GlyphZone* zone = &load->zone;
- FT_Error error = FT_Err_Ok;
+ FT_Error error = TT_Err_Ok;
FT_UNUSED( debug ); /* used by truetype interpreter only */
@@ -625,7 +625,7 @@
if ( error && load->exec->pedantic_hinting )
goto Exit;
- error = FT_Err_Ok; /* ignore bytecode errors in non-pedantic mode */
+ error = TT_Err_Ok; /* ignore bytecode errors in non-pedantic mode */
}
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
@@ -740,7 +740,7 @@
#endif
- error = FT_Err_Ok;
+ error = TT_Err_Ok;
goto Exit;
}
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 0b1855e..af15bf8 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -152,7 +152,7 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL
+ FT_LOCAL_DEF
FT_Error TT_Init_Face( FT_Stream stream,
TT_Face face,
FT_Int face_index,
@@ -207,7 +207,7 @@
return error;
Bad_Format:
- error = FT_Err_Unknown_File_Format;
+ error = TT_Err_Unknown_File_Format;
goto Exit;
}
@@ -223,7 +223,7 @@
/* <Input> */
/* face :: A pointer to the face object to destroy. */
/* */
- FT_LOCAL
+ FT_LOCAL_DEF
void TT_Done_Face( TT_Face face )
{
FT_Memory memory = face->root.memory;
@@ -276,7 +276,7 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
- FT_LOCAL
+ FT_LOCAL_DEF
FT_Error TT_Init_Size( TT_Size size )
{
FT_Error error = TT_Err_Ok;
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index 071c29d..881c998 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -112,7 +112,7 @@
}
*max_advance = decoder.builder.advance.x;
- return FT_Err_Ok;
+ return T1_Err_Ok;
}
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 3992226..a901684 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -226,7 +226,7 @@
if ( blend && blend->num_axis == num_coords )
{
/* recompute the weight vector from the blend coordinates */
- error = FT_Err_Ok;
+ error = T1_Err_Ok;
for ( n = 0; n < blend->num_designs; n++ )
{
@@ -251,7 +251,7 @@
blend->weight_vector[n] = result;
}
- error = FT_Err_Ok;
+ error = T1_Err_Ok;
}
return error;
}
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index fedd93e..b830092 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -332,7 +332,7 @@
/* simply clear the error in case of failure (which really) */
/* means that out of memory or no unicode glyph names */
- error = FT_Err_Ok;
+ error = T1_Err_Ok;
}
}
@@ -403,7 +403,7 @@
/* <Input> */
/* driver :: A handle to the target Type 1 driver. */
/* */
- FT_LOCAL
+ FT_LOCAL_DEF
void T1_Done_Driver( T1_Driver driver )
{
FT_UNUSED( driver );
diff --git a/src/type1/t1parse.c b/src/type1/t1parse.c
index eede8bb..2ec6ba3 100644
--- a/src/type1/t1parse.c
+++ b/src/type1/t1parse.c
@@ -207,7 +207,7 @@
"%!FontType", 10 ) ) )
{
FT_TRACE2(( "[not a Type1 font]\n" ));
- error = FT_Err_Unknown_File_Format;
+ error = T1_Err_Unknown_File_Format;
}
else
{
@@ -321,7 +321,7 @@
error = read_pfb_tag( stream, &tag, &size );
if ( error || tag != 0x8002 )
{
- error = FT_Err_Ok;
+ error = T1_Err_Ok;
break;
}