Commit Graph

110 Commits

Author SHA1 Message Date
rsheeter 600ffc29d5 Merge pull request #27 from khaledhosny/kill-continuestream
Kill kWoff2FlagsContinueStream
2015-07-15 11:34:35 -04:00
Khaled Hosny 208c8f854e Kill kWoff2FlagsContinueStream
There is only a single data stream for all the compressed tables, but
the code was originally written for separately compressed tables then
retrofitted, so this is an attempt to streamline it a bit.
2015-07-15 11:25:52 +02:00
Rod Sheeter 4e3bb3418f Merge PR #16 (reject composite glyphs w/o bbox), slightly modified to match recent code updates (mostly just adding branch predictions) 2015-07-14 10:12:40 -07:00
rsheeter 3fdb28894a Merge pull request #14 from CoolOppo/patch-1
Clone recursively rather than manually for Brotli
2015-07-13 12:18:04 -04:00
Rod Sheeter e31c8abfeb Update brotli to head from google/brotli. 2015-07-13 09:09:01 -07:00
Rod Sheeter ea4c87a2c5 Updates from internal copy. Better branch prediction, ability to set Brotli quality on ConvertTTFToWOFF2 2015-07-13 09:08:04 -07:00
rsheeter e3ea2285a7 Merge pull request #25 from khaledhosny/invalid-base128
Reject UIntBase128 with leading zeros
2015-06-29 15:30:13 -04:00
rsheeter 50fe91ba1a Merge pull request #24 from khaledhosny/clang-warning
Fix compiler warning for clang
2015-06-29 11:22:01 -04:00
Khaled Hosny f43ad22271 Reject UIntBase128 with leading zeros
Fixes #23.
2015-06-25 06:53:21 +02:00
Khaled Hosny c54533f47f Fix compiler warning on Mac OS X
warning: format specifies type 'unsigned long' but the argument has type
'uint64_t' (aka 'unsigned long long') [-Wformat]
2015-06-25 03:32:08 +02:00
rsheeter 2855ee7b8b Merge pull request #17 from khaledhosny/fix-debug
Fix building with FONT_COMPRESSION_DEBUG
2015-05-06 09:19:40 -07:00
Khaled Hosny c3d35ba2e1 Fix building with FONT_COMPRESSION_DEBUG 2015-05-01 01:01:11 +03:00
Rod Sheeter 93699d2659 Merge branch 'mitya57-master' 2015-04-27 08:56:21 -07:00
Rod Sheeter 75e9553b35 Update to latest brotli 2015-04-27 08:55:38 -07:00
Rod Sheeter 1c0bd585ac Merge branch 'master' of https://github.com/mitya57/woff2 into mitya57-master 2015-04-27 08:14:59 -07:00
Rod Sheeter cbd682fcc9 remove comment that has been addressed 2015-04-22 15:55:53 -07:00
rsheeter 56e5e74d34 Merge pull request #13 from khaledhosny/bbox
Fix simple glyph bounding box handling
2015-04-22 15:52:54 -07:00
rsheeter ad8c15fa7d Merge pull request #4 from khaledhosny/master
Some spec conformance fixes
2015-04-22 08:44:51 -07:00
Khaled Hosny 531adab1fe Reject non-zero loca transformLength 2015-04-20 00:21:05 +02:00
Khaled Hosny 3f91c6e58f Check matadata and private blocks offsets & length
So that we can reject fonts with extraneous data between blocks, as the
spec says we should reject says we should reject such fonts.
2015-04-20 00:11:04 +02:00
Khaled Hosny 0634e0a719 Don't accept too long totalSfntSize
Per the spec (WOFF 2.0 spec just refer to WOFF 1.0 spec here):
http://www.w3.org/TR/2012/REC-WOFF-20121213/#conform-totalsize-longword-reject
2015-04-20 00:11:04 +02:00
CoolOppo 8a7eec25df Clone recursively rather than manually for Brotli 2015-04-14 18:57:19 -04:00
Khaled Hosny de2cabb897 Fix simple glyph bounding box handling
Per the spec[1], the bounding box should be calculated and if it differs
from the one stored on the font, the original should be written
otherwise it should be omitted. On the other hand, the bounding box of
composite glyphs should be always written.

Fixes #12.

1. http://dev.w3.org/webfonts/WOFF2/spec/#conform-mustCalculateOmitBBoxValues
2015-04-10 22:07:56 +02:00
rsheeter 7375be53fc Merge pull request #11 from google/rsheeter-master
Mark as transformed. Correct how TTC table records were used by font.cc.
2015-04-09 07:50:53 -07:00
Rod Sheeter 90603761c7 Mark as transformed. Correct how table records were used by font.cc when writing collections. 2015-04-09 07:47:55 -07:00
rsheeter 804d3b93a7 Merge pull request #10 from bardware/master
new version of brotli because of missing rand_r in mingw environment
2015-04-08 07:41:01 -07:00
Bernhard Döbler 7eecfa8211 new version of brotli because of missing rand_r in mingw environment 2015-04-07 23:31:55 +02:00
Dmitry Shachnev 5b99d15ab3 Makefile fixes and cleanups
- Distinguish between CC/CFLAGS, CPP/CPPFLAGS and CXX/CXXFLAGS.
  Do not store compiler flags in CPPFLAGS, which is for preprocessor.
- Use COMMON_FLAGS for flags that are for both C and C++.
- Use $(MAKE) instead of make, so that parallel building works.
- Drop -m64 flag which is wrong on 32-bit systems.
2015-03-13 18:06:37 +03:00
Rod Sheeter 0c1ec8895b Correct LICENSE to state Apache 2.0 2015-03-04 13:11:43 -08:00
Rod Sheeter ab99e2f8bd Per discussion with WG, update table ordering to what OTS expects. Once browsers are on latest cut of OTS we will go back to spec order. 2015-03-04 12:27:22 -08:00
Rod Sheeter 52b740bfac Merge branch 'master' of github.com:google/woff2 2015-03-03 09:37:30 -08:00
Rod Sheeter 498c637024 Correct decoder output table ordering 2015-03-03 09:30:12 -08:00
rsheeter 757bfdd33e Merge pull request #6 from ao5357/ao5357-doc-patch
Documentation for end-users
2015-02-25 15:36:34 -08:00
Rod Sheeter 538b401b77 tweak to how index by offset is built 2015-02-25 09:22:45 -08:00
Brad Czerniak 97e33a1736 Documentation for end-users
Notation of compiler dependency and addition of binaries to $PATH
2015-02-25 11:08:15 -05:00
Rod Sheeter 4e48243b3a In some build environments this results in off-by-one 2015-02-24 16:04:13 -08:00
Rod Sheeter bb12c44af7 Merge update to Makefile 2015-02-24 14:08:08 -08:00
Rod Sheeter 6e9eeaf43c add new objects 2015-02-24 14:04:43 -08:00
Rod Sheeter 1c975530b9 Adding TTC support, take 1 2015-02-24 13:53:35 -08:00
Rod Sheeter 445f541996 Sort tables when decoding 2015-02-12 09:56:29 -08:00
Rod Sheeter 0a8567d4f9 Minor updates from internal copy 2015-02-12 09:30:22 -08:00
Roderick Sheeter 2b35420fa9 As suggested in https://github.com/google/woff2/pull/2, correct const for top 7 bits 2014-11-24 07:11:04 -08:00
rsheeter 2f727ecc83 Merge pull request #1 from khaledhosny/master
Some build cleanups
2014-11-24 06:08:19 -08:00
Khaled Hosny 23e2aa1f7c Add .gitignore file 2014-11-22 16:48:32 +02:00
Khaled Hosny 4b8c71e0d5 Rename CPP to CXX
CPP is the C pre processor.
2014-11-22 16:48:32 +02:00
Khaled Hosny a262e006d1 Fold shared.mk into Makefile
There is only one Makefile in this repository.
2014-11-22 16:48:31 +02:00
Khaled Hosny 3e1f5ca955 Move the Makefile to the top directory 2014-11-22 16:48:21 +02:00
Khaled Hosny 09c4eba0f6 Rename woff2 to src 2014-11-22 16:35:21 +02:00
Khaled Hosny b33699ad8a Remove outdated or unused files 2014-11-22 16:34:45 +02:00
Roderick Sheeter 050a3a05c2 Fix README headings 2014-11-18 13:01:06 -08:00