external/sfntly/cpp/src.git
10 months agoGracefully fail when TTF name table contains a zero-length name. master
arthurhsu@google.com [Mon, 9 Jul 2012 18:35:41 +0000 (18:35 +0000)]
Gracefully fail when TTF name table contains a zero-length name.

Backport from b/6733065.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@134 672e30a5-4c29-85ac-ac6d-611c735e0a51

10 months agoLand Nico's warning fix.
arthurhsu@google.com [Fri, 29 Jun 2012 17:27:00 +0000 (17:27 +0000)]
Land Nico's warning fix.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@133 672e30a5-4c29-85ac-ac6d-611c735e0a51

14 months agoWork around Apple MacOS X Lion AppleMyungjo font bug. git-svn
arthurhsu@google.com [Tue, 28 Feb 2012 03:19:21 +0000 (03:19 +0000)]
Work around Apple MacOS X Lion AppleMyungjo font bug.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@128 672e30a5-4c29-85ac-ac6d-611c735e0a51

16 months agoCoverity fix: uninitialized scalar member.
arthurhsu@google.com [Thu, 5 Jan 2012 00:14:30 +0000 (00:14 +0000)]
Coverity fix: uninitialized scalar member.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@119 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoMove Chromium subsetter code to sample, update CMakeLists accordingly.
arthurhsu@google.com [Mon, 12 Dec 2011 22:29:05 +0000 (22:29 +0000)]
Move Chromium subsetter code to sample, update CMakeLists accordingly.
Remove unused const in font.h.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@118 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoUpdate test files for macro changes in previous CL
arthurhsu@google.com [Fri, 9 Dec 2011 02:25:57 +0000 (02:25 +0000)]
Update test files for macro changes in previous CL

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@117 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoPatch from Nico Weber: remove static initializers.
arthurhsu@google.com [Fri, 9 Dec 2011 02:13:39 +0000 (02:13 +0000)]
Patch from Nico Weber: remove static initializers.
This is needed because gcc 4.4.3 can't evaluate simple static functions
at compile time.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@116 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoUpdate per code review
arthurhsu@google.com [Fri, 9 Dec 2011 01:57:25 +0000 (01:57 +0000)]
Update per code review

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@115 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoUpdate per Chromium side code review
arthurhsu@google.com [Fri, 9 Dec 2011 01:57:19 +0000 (01:57 +0000)]
Update per Chromium side code review

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@114 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoFix clang compilation errors in Chromium.
arthurhsu@google.com [Wed, 30 Nov 2011 01:43:19 +0000 (01:43 +0000)]
Fix clang compilation errors in Chromium.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@111 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoGraduate EBXX from experimental
arthurhsu@google.com [Tue, 29 Nov 2011 21:34:18 +0000 (21:34 +0000)]
Graduate EBXX from experimental

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@110 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoFix subsetter bug (TBR, testing with Chrome integration, subjected to change)
arthurhsu@google.com [Tue, 29 Nov 2011 01:19:06 +0000 (01:19 +0000)]
Fix subsetter bug (TBR, testing with Chrome integration, subjected to change)

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@109 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoUpdate per code review comments from previous check-in
arthurhsu@google.com [Mon, 28 Nov 2011 23:35:40 +0000 (23:35 +0000)]
Update per code review comments from previous check-in

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@108 672e30a5-4c29-85ac-ac6d-611c735e0a51

17 months agoFinish bitmap subsetting support
arthurhsu@google.com [Mon, 28 Nov 2011 18:20:03 +0000 (18:20 +0000)]
Finish bitmap subsetting support

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@107 672e30a5-4c29-85ac-ac6d-611c735e0a51

18 months agoFix bug in HDMX table (from stuartg's code review)
arthurhsu@google.com [Wed, 16 Nov 2011 02:16:53 +0000 (02:16 +0000)]
Fix bug in HDMX table (from stuartg's code review)

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@106 672e30a5-4c29-85ac-ac6d-611c735e0a51

18 months agoUpdate to Java initial release (except bitmap tables)
arthurhsu@google.com [Tue, 15 Nov 2011 19:34:35 +0000 (19:34 +0000)]
Update to Java initial release (except bitmap tables)
TBR(stuartg)

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@105 672e30a5-4c29-85ac-ac6d-611c735e0a51

19 months agoUpdate to 10-17-11 snapshot
arthurhsu@google.com [Fri, 21 Oct 2011 00:33:26 +0000 (00:33 +0000)]
Update to 10-17-11 snapshot

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@103 672e30a5-4c29-85ac-ac6d-611c735e0a51

19 months agoFix issue 3: no new line at end of file
arthurhsu@google.com [Thu, 20 Oct 2011 20:30:19 +0000 (20:30 +0000)]
Fix issue 3: no new line at end of file

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@102 672e30a5-4c29-85ac-ac6d-611c735e0a51

19 months agoUpdate to 10-12-11 snapshot
arthurhsu@google.com [Tue, 18 Oct 2011 19:32:16 +0000 (19:32 +0000)]
Update to 10-12-11 snapshot
Created new chrome_subsetter program to test font subsetter used in Chromium
Fix several porting bugs in previous CL

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@101 672e30a5-4c29-85ac-ac6d-611c735e0a51

19 months agoUpdate to Sep 30 snapshot, include all current EBXX support.
arthurhsu@google.com [Tue, 11 Oct 2011 01:01:16 +0000 (01:01 +0000)]
Update to Sep 30 snapshot, include all current EBXX support.
Refine Iterator ports: all java-style Iterator objects are ref-counted and have automatic memory management now.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@100 672e30a5-4c29-85ac-ac6d-611c735e0a51

19 months agoTemporary disable CMap and Bitmap processing by default.
arthurhsu@google.com [Mon, 26 Sep 2011 17:58:32 +0000 (17:58 +0000)]
Temporary disable CMap and Bitmap processing by default.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@98 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoFixing another signed/unsigned comparison issue.
dfilimon@google.com [Thu, 22 Sep 2011 21:23:42 +0000 (21:23 +0000)]
Fixing another signed/unsigned comparison issue.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@97 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoFixing signed/unsigned comparison mismatch.
dfilimon@google.com [Thu, 22 Sep 2011 21:17:23 +0000 (21:17 +0000)]
Fixing signed/unsigned comparison mismatch.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@96 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoFixing compilation issues on Windows.
dfilimon@google.com [Thu, 22 Sep 2011 21:12:57 +0000 (21:12 +0000)]
Fixing compilation issues on Windows.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@95 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoMigrated CMapBasicTests to use XML source.
dfilimon@google.com [Thu, 22 Sep 2011 21:01:00 +0000 (21:01 +0000)]
Migrated CMapBasicTests to use XML source.
- added TinyXML library code and helper functions
- removed old Python scripts that generated C++ files
- added Python script that generates a list of fonts to test (.h file)
- modified test/autogenerated/cmap_basic_test.cc
- update test/autogenerated/cmap_test_data.h

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@93 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoFixing build breakages on GCC and VC.
dfilimon@google.com [Wed, 21 Sep 2011 04:02:37 +0000 (04:02 +0000)]
Fixing build breakages on GCC and VC.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@92 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdded sample subsetter and merger.
dfilimon@google.com [Wed, 21 Sep 2011 03:56:38 +0000 (03:56 +0000)]
Added sample subsetter and merger.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@91 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdd atomicity to whereever needed.
arthurhsu@google.com [Tue, 20 Sep 2011 20:03:14 +0000 (20:03 +0000)]
Add atomicity to whereever needed.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@89 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoFixind Windows build, round 3.
dfilimon@google.com [Sat, 17 Sep 2011 23:09:54 +0000 (23:09 +0000)]
Fixind Windows build, round 3.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@88 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoFixing Windows build, round 2.
dfilimon@google.com [Sat, 17 Sep 2011 23:04:28 +0000 (23:04 +0000)]
Fixing Windows build, round 2.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@87 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoFixing compile errors on Windows.
dfilimon@google.com [Sat, 17 Sep 2011 22:58:38 +0000 (22:58 +0000)]
Fixing compile errors on Windows.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@86 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdding support for CMapFormat4.
dfilimon@google.com [Sat, 17 Sep 2011 22:39:06 +0000 (22:39 +0000)]
Adding support for CMapFormat4.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@85 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoTypo in last commit.
dfilimon@google.com [Fri, 16 Sep 2011 01:34:15 +0000 (01:34 +0000)]
Typo in last commit.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@84 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAssignment operator fix for IdFilter.
dfilimon@google.com [Fri, 16 Sep 2011 01:30:38 +0000 (01:30 +0000)]
Assignment operator fix for IdFilter.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@83 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoMinor cleanup.
dfilimon@google.com [Fri, 16 Sep 2011 01:24:51 +0000 (01:24 +0000)]
Minor cleanup.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@82 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdded port/type.h before other headers to fix the Visual Studio redefintion issue.
dfilimon@google.com [Thu, 15 Sep 2011 19:48:41 +0000 (19:48 +0000)]
Added port/type.h before other headers to fix the Visual Studio redefintion issue.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@81 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdded private operator= for CMapIdFilter to get the code to compile with Visual Studio.
dfilimon@google.com [Thu, 15 Sep 2011 19:32:31 +0000 (19:32 +0000)]
Added private operator= for CMapIdFilter to get the code to compile with Visual Studio.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@79 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdded fix for operator= generation failure for CMapIdFilter on Windows.
dfilimon@google.com [Thu, 15 Sep 2011 19:22:43 +0000 (19:22 +0000)]
Added fix for operator= generation failure for CMapIdFilter on Windows.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@78 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdded UNREFERENCED_PARAMATER fix for CMapFormat2 iterator.
dfilimon@google.com [Thu, 15 Sep 2011 19:18:58 +0000 (19:18 +0000)]
Added UNREFERENCED_PARAMATER fix for CMapFormat2 iterator.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@77 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdding CMapTable support for Format0.
dfilimon@google.com [Thu, 15 Sep 2011 19:14:16 +0000 (19:14 +0000)]
Adding CMapTable support for Format0.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@76 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdding autogenerated tests to the repo.
dfilimon@google.com [Thu, 15 Sep 2011 19:13:49 +0000 (19:13 +0000)]
Adding autogenerated tests to the repo.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@75 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdd mutex
arthurhsu@google.com [Mon, 12 Sep 2011 20:07:59 +0000 (20:07 +0000)]
Add mutex

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@72 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdvance C++ port to Sep 1 11 snapshot
arthurhsu@google.com [Thu, 8 Sep 2011 21:42:50 +0000 (21:42 +0000)]
Advance C++ port to Sep 1 11 snapshot
Update test font to use OFL-compliant fonts

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@71 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoAdvance C++ port to Aug 11 Java snapshot
arthurhsu@google.com [Thu, 1 Sep 2011 18:23:15 +0000 (18:23 +0000)]
Advance C++ port to Aug 11 Java snapshot

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@70 672e30a5-4c29-85ac-ac6d-611c735e0a51

20 months agoModified NewTableBuilder so it would no longer require CALLER_ATTACH.
dfilimon@google.com [Mon, 29 Aug 2011 17:13:42 +0000 (17:13 +0000)]
Modified NewTableBuilder so it would no longer require CALLER_ATTACH.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@60 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoReorg folder structure to aligned with latest Java version.
arthurhsu@google.com [Tue, 23 Aug 2011 00:48:46 +0000 (00:48 +0000)]
Reorg folder structure to aligned with latest Java version.
Change header guards.
Updated font_data_test.cc so that VC compilation is not broken.
Updated CMakeLists.txt so that files are grouped in folders in VC.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@58 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoAdded SearchUShort and SearchULong.
dfilimon@google.com [Tue, 23 Aug 2011 00:31:41 +0000 (00:31 +0000)]
Added SearchUShort and SearchULong.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@57 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFixed bug where all glyphs would be set to composite.
dfilimon@google.com [Tue, 23 Aug 2011 00:27:00 +0000 (00:27 +0000)]
Fixed bug where all glyphs would be set to composite.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@56 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoPort files under /data to Aug 11 version.
arthurhsu@google.com [Fri, 19 Aug 2011 22:05:08 +0000 (22:05 +0000)]
Port files under /data to Aug 11 version.
ReadableFontData.Search*() not ported since they're already in another CL under review.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@55 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoBug fix: when table is located at the end of file, original code will determine the...
arthurhsu@google.com [Wed, 17 Aug 2011 01:29:17 +0000 (01:29 +0000)]
Bug fix: when table is located at the end of file, original code will determine the wrong size and refuse to read it.

Also reverted changes in r48 due to its test nature.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@54 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoAdd test case: chrome subsetter
arthurhsu@google.com [Tue, 16 Aug 2011 02:26:47 +0000 (02:26 +0000)]
Add test case: chrome subsetter

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@52 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoCommit for testing the buildbots. Nothing changed except for a comment.
dfilimon@google.com [Fri, 12 Aug 2011 21:02:37 +0000 (21:02 +0000)]
Commit for testing the buildbots. Nothing changed except for a comment.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@48 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoMore thorough unit tests.
arthurhsu@google.com [Fri, 12 Aug 2011 01:04:16 +0000 (01:04 +0000)]
More thorough unit tests.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@47 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoAdded CreateWritableFontData factory methods to WritableFontData.
dfilimon@google.com [Fri, 12 Aug 2011 01:04:03 +0000 (01:04 +0000)]
Added CreateWritableFontData factory methods to WritableFontData.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@46 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoPort serialization test.
arthurhsu@google.com [Thu, 11 Aug 2011 01:59:20 +0000 (01:59 +0000)]
Port serialization test.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@44 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFortify font build against error cases.
arthurhsu@google.com [Wed, 10 Aug 2011 20:06:32 +0000 (20:06 +0000)]
Fortify font build against error cases.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@43 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoAdd checksum test for generic table builder (validating the checksum algorithm).
arthurhsu@google.com [Tue, 9 Aug 2011 20:55:55 +0000 (20:55 +0000)]
Add checksum test for generic table builder (validating the checksum algorithm).

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@42 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFix VC compilation warnings.
arthurhsu@google.com [Tue, 9 Aug 2011 00:18:33 +0000 (00:18 +0000)]
Fix VC compilation warnings.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@41 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoReorg test structure, fix memory leaks.
arthurhsu@google.com [Mon, 8 Aug 2011 18:37:09 +0000 (18:37 +0000)]
Reorg test structure, fix memory leaks.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@40 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoAdded generate_name from tag. Useful for debugging and used in future tests.
dfilimon@google.com [Fri, 5 Aug 2011 21:51:33 +0000 (21:51 +0000)]
Added generate_name from tag. Useful for debugging and used in future tests.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@39 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoSmall style fix.
dfilimon@google.com [Fri, 5 Aug 2011 21:46:13 +0000 (21:46 +0000)]
Small style fix.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@38 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoAdded LoadFontUsingByteArray to TestFontUtils.
dfilimon@google.com [Fri, 5 Aug 2011 21:36:29 +0000 (21:36 +0000)]
Added LoadFontUsingByteArray to TestFontUtils.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@37 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFix loca bug caused by typo.
arthurhsu@google.com [Tue, 2 Aug 2011 20:50:44 +0000 (20:50 +0000)]
Fix loca bug caused by typo.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@36 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFixed fix. Didn't have SVN repo updated before committing.
dfilimon@google.com [Mon, 1 Aug 2011 23:53:39 +0000 (23:53 +0000)]
Fixed fix. Didn't have SVN repo updated before committing.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@35 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFixes memory leak in font_factory.
dfilimon@google.com [Mon, 1 Aug 2011 23:44:12 +0000 (23:44 +0000)]
Fixes memory leak in font_factory.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@34 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoOriginal change by dfilimon
arthurhsu@google.com [Mon, 1 Aug 2011 23:35:27 +0000 (23:35 +0000)]
Original change by dfilimon
Redo since the readability CL invalidated it.
Fix bad usage of STL map that created NULL pointers in table builder map.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@33 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFix possible NULL pointer dereferencing.
arthurhsu@google.com [Mon, 1 Aug 2011 20:50:21 +0000 (20:50 +0000)]
Fix possible NULL pointer dereferencing.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@32 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoReadability clean up. The code conforms to Google C++ Coding Style.
arthurhsu@google.com [Mon, 1 Aug 2011 17:26:13 +0000 (17:26 +0000)]
Readability clean up.  The code conforms to Google C++ Coding Style.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@30 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoQuick fix for compile on Windows.
dfilimon@google.com [Sat, 30 Jul 2011 05:49:09 +0000 (05:49 +0000)]
Quick fix for compile on Windows.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@29 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFix compilation warnings when used by Chrome.
arthurhsu@google.com [Wed, 27 Jul 2011 00:52:05 +0000 (00:52 +0000)]
Fix compilation warnings when used by Chrome.
Make sure the warn unused return is not disabled.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@28 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoRemoving changes from revision 26
arthurhsu@google.com [Tue, 26 Jul 2011 20:37:26 +0000 (20:37 +0000)]
Removing changes from revision 26

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@27 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFixed a memory leak in font.cc:520 caused by not attaching to a pointer
dfilimon@google.com [Tue, 26 Jul 2011 20:25:35 +0000 (20:25 +0000)]
Fixed a memory leak in font.cc:520 caused by not attaching to a pointer
returned by getNewArray that would not ever get deleted.

Also fixed the cmap builder map bug.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@26 672e30a5-4c29-85ac-ac6d-611c735e0a51

21 months agoFix crash issue when users specify /GR- in VC's compilation flag.
arthurhsu@google.com [Tue, 26 Jul 2011 17:07:40 +0000 (17:07 +0000)]
Fix crash issue when users specify /GR- in VC's compilation flag.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@25 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoFix VC build breakage
arthurhsu@google.com [Fri, 22 Jul 2011 20:25:44 +0000 (20:25 +0000)]
Fix VC build breakage

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@24 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoUpdate for clang to successfully build sfntly.
arthurhsu@google.com [Thu, 21 Jul 2011 22:30:37 +0000 (22:30 +0000)]
Update for clang to successfully build sfntly.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@20 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoCMap porting and unit tests (partial)
arthurhsu@google.com [Thu, 21 Jul 2011 17:54:40 +0000 (17:54 +0000)]
CMap porting and unit tests (partial)
Author: Dan-george Filimon (dfilimon@google.com)
Checked in by arthur@google.com since Dan hasn't got committer status yet.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@18 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoPorting name table implementation, also the corresponding test cases.
arthurhsu@google.com [Thu, 14 Jul 2011 22:02:49 +0000 (22:02 +0000)]
Porting name table implementation, also the corresponding test cases.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@9 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoAdd more unit tests and fix I/O bugs.
arthurhsu@google.com [Wed, 13 Jul 2011 00:02:17 +0000 (00:02 +0000)]
Add more unit tests and fix I/O bugs.
Add a public domain font and restructure tests.
Change cmake to default output debug builds.
Fix VC 2008 compilation issues.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@8 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoFix bugs and add unit tests to FileInputStream class.
arthurhsu@google.com [Mon, 11 Jul 2011 19:04:17 +0000 (19:04 +0000)]
Fix bugs and add unit tests to FileInputStream class.
Add the class to Linux/Mac builds.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@7 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoUpdate static const ints to enums so that these enums can be used in
arthurhsu@google.com [Fri, 8 Jul 2011 23:09:32 +0000 (23:09 +0000)]
Update static const ints to enums so that these enums can be used in
switch-case.  There are two exceptions:
1. if original Java code uses static const int, we keep it that way.
2. C++ compilers may not support 64-bit enum so we need to define them as static
const uint64_t

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@6 672e30a5-4c29-85ac-ac6d-611c735e0a51

22 months agoAdded a preprocessor flag SFNTLY_NO_EXCEPTION to disable exception handling. Fixed...
arthurhsu@google.com [Mon, 27 Jun 2011 21:23:55 +0000 (21:23 +0000)]
Added a preprocessor flag SFNTLY_NO_EXCEPTION to disable exception handling.  Fixed the code to make GCC -Wall -Werror flags happy.

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@3 672e30a5-4c29-85ac-ac6d-611c735e0a51

23 months agoInitial release
arthurhsu@google.com [Thu, 23 Jun 2011 17:20:41 +0000 (17:20 +0000)]
Initial release

git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@2 672e30a5-4c29-85ac-ac6d-611c735e0a51