aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports
Commit message (Collapse)AuthorAge
...
* Subpixel glyph rendering support.Gravatar agl@chromium.org2009-07-21
| | | | | | | | | | | | | | | | This patch adds support for rendering subpixel glyphs (using Freetype). In order to control this rendering see SkPaint::setLCDRenderText in SkPaint.h. To setup the LCD mode, see SkFontHost::SetSubpixelOrientation and SkFontHost::SetSubpixelOrder in SkFontHost.h. This patch also adds more fine grained control over hinting (again, only for Freetype currently). One can now control the hinting with SkPaint::setHinting. git-svn-id: http://skia.googlecode.com/svn/trunk@275 2bbb7eff-a529-9590-31e7-b0007b416f81
* use genericRGB space to ensure that we decode exactly the pixels we encodeGravatar reed@android.com2009-07-08
| | | | | | | | add -r option to gm to read and compare against known images git-svn-id: http://skia.googlecode.com/svn/trunk@256 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix a precedence error in an assert in the fontconfig host.Gravatar deanm@chromium.org2009-07-01
| | | | | | | Review URL: http://codereview.appspot.com/90060 git-svn-id: http://skia.googlecode.com/svn/trunk@246 2bbb7eff-a529-9590-31e7-b0007b416f81
* use sk_bzero instead of bzero, since it isn't always available.Gravatar reed@android.com2009-06-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@244 2bbb7eff-a529-9590-31e7-b0007b416f81
* move xfermode modes from porterduff into xfermode itselfGravatar reed@android.com2009-06-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@232 2bbb7eff-a529-9590-31e7-b0007b416f81
* almost there on gm (need to fix image writes/reads/compares)Gravatar reed@android.com2009-06-21
| | | | | | | | | move SkAutoGraphics into SkGraphics.h add [] operators to SkString git-svn-id: http://skia.googlecode.com/svn/trunk@228 2bbb7eff-a529-9590-31e7-b0007b416f81
* update to latest api (need a test for this port!)Gravatar reed@android.com2009-06-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@225 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make sure we have a non-null FreeType face before dereferencing it.Gravatar deanm@chromium.org2009-06-19
| | | | | | | | | | | This prevents a NULL pointer crash in generateFontMetrics with some fonts. Patch by Lei Zhang. Original Chromium bug: http://code.google.com/p/chromium/issues/detail?id=13007 Review URL: http://codereview.appspot.com/78056 git-svn-id: http://skia.googlecode.com/svn/trunk@224 2bbb7eff-a529-9590-31e7-b0007b416f81
* Some Linux / 64-bit compile fixes.Gravatar deanm@chromium.org2009-06-11
| | | | | | | Review URL: http://codereview.appspot.com/63189 git-svn-id: http://skia.googlecode.com/svn/trunk@209 2bbb7eff-a529-9590-31e7-b0007b416f81
* fontconfig: allow fallback for certain magical font names.Gravatar agl@chromium.org2009-06-01
| | | | | | | | | | http://codereview.appspot.com/63169 http://code.google.com/p/chromium/issues/detail?id=10665 Patch-by: Evan Martin git-svn-id: http://skia.googlecode.com/svn/trunk@193 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix reference count on openStreamGravatar reed@android.com2009-05-18
| | | | | | | | Issue 62067: SkFontHost_linux.cpp: Reference counting problem git-svn-id: http://skia.googlecode.com/svn/trunk@176 2bbb7eff-a529-9590-31e7-b0007b416f81
* Typo fix for VDMX parsing in Chromium.Gravatar agl@chromium.org2009-05-07
| | | | | | | TBR=reed git-svn-id: http://skia.googlecode.com/svn/trunk@170 2bbb7eff-a529-9590-31e7-b0007b416f81
* add simple port of memory APIs, to be used as a template for other platformsGravatar reed@android.com2009-05-04
| | | | | | | | that may want to add new_handler logic or other hooks. git-svn-id: http://skia.googlecode.com/svn/trunk@167 2bbb7eff-a529-9590-31e7-b0007b416f81
* check for 0 upem in freetypeGravatar reed@android.com2009-05-04
| | | | | | | | add 32bit-overflow check git-svn-id: http://skia.googlecode.com/svn/trunk@165 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add fontconfig support.Gravatar agl@chromium.org2009-04-28
| | | | | | | | | | | Fontconfig is usually found on Linux systems and handles configuration, parsing and caching issues involved with enumerating and matching fonts. This patch adds SkFontHost methods based on fontconfig. git-svn-id: http://skia.googlecode.com/svn/trunk@162 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix mac buildGravatar reed@android.com2009-04-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@158 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sync with Chromium's forkGravatar agl@chromium.org2009-04-22
| | | | | | | | | | | | | | | | * Add the following font metrics fields: + fAvgCharWidth + fXMin + fXMax + fXHeight * Add \#if 0'ed includes for the Freetype headers for Xcode, scons and other tools which chase headers. * Correctly render 1bpp fonts (mostly Chinese fonts at small sizes) git-svn-id: http://skia.googlecode.com/svn/trunk@157 2bbb7eff-a529-9590-31e7-b0007b416f81
* trivial: fix wsGravatar reed@android.com2009-04-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@156 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkSfntUtils to parse some known truetype tablesGravatar reed@android.com2009-04-14
| | | | | | | | | | add comments and cleanup to count_tables in SkFontHost_tables.cpp fix transparency bug in gifs use (alpha+1) for blending in srcover mode, to ensure opaque results git-svn-id: http://skia.googlecode.com/svn/trunk@155 2bbb7eff-a529-9590-31e7-b0007b416f81
* SkFontHost_tables: fix minor bugsGravatar agl@chromium.org2009-04-13
| | | | | | | http://codereview.appspot.com/33092 git-svn-id: http://skia.googlecode.com/svn/trunk@154 2bbb7eff-a529-9590-31e7-b0007b416f81
* implement generateCountGlyphs using new font table apisGravatar reed@android.com2009-04-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@150 2bbb7eff-a529-9590-31e7-b0007b416f81
* add Table apis to SkFontHostGravatar reed@android.com2009-04-08
| | | | | | | | need to implement in _win backend git-svn-id: http://skia.googlecode.com/svn/trunk@149 2bbb7eff-a529-9590-31e7-b0007b416f81
* import portability fixes from Chrome around floatsGravatar reed@android.com2009-04-03
| | | | | | | | move porting functions for SkDebugf into /ports directory git-svn-id: http://skia.googlecode.com/svn/trunk@147 2bbb7eff-a529-9590-31e7-b0007b416f81
* pull latest from androidGravatar reed@android.com2009-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@132 2bbb7eff-a529-9590-31e7-b0007b416f81
* build with -WallGravatar reed@android.com2009-03-20
| | | | | | | | fix associated warnings (at least on gcc 4.0.1) git-svn-id: http://skia.googlecode.com/svn/trunk@129 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix capitalization for system includesGravatar reed@android.com2009-03-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@127 2bbb7eff-a529-9590-31e7-b0007b416f81
* Simplify font-chaining (fallbacks) to have fonthost just return the nextGravatar reed@android.com2009-03-17
| | | | | | | | | | logical fontID. Extend ImageRef to accept an imagedecoder factory, to replace calling the std one. git-svn-id: http://skia.googlecode.com/svn/trunk@125 2bbb7eff-a529-9590-31e7-b0007b416f81
* remember to specify the bloody font tag in the constructor!Gravatar reed@android.com2009-03-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@118 2bbb7eff-a529-9590-31e7-b0007b416f81
* mac fonts sort of work nowGravatar reed@android.com2009-03-09
| | | | | | | | | - haven't tested rotation yet - spacing/bounds still look bad git-svn-id: http://skia.googlecode.com/svn/trunk@117 2bbb7eff-a529-9590-31e7-b0007b416f81
* implement fontmetricsGravatar reed@android.com2009-03-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@116 2bbb7eff-a529-9590-31e7-b0007b416f81
* check-point (2) on mac fontsGravatar reed@android.com2009-03-09
| | | | | | | | - simplify typeface factories git-svn-id: http://skia.googlecode.com/svn/trunk@115 2bbb7eff-a529-9590-31e7-b0007b416f81
* minor check-point for switching to glyphsGravatar reed@android.com2009-03-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@114 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix leak in DeserializeGravatar reed@android.com2009-03-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@112 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix ref() in CreateTypefaceGravatar reed@android.com2009-03-05
| | | | | | | | fix comment in SkDraw.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@111 2bbb7eff-a529-9590-31e7-b0007b416f81
* Significant cleanup in api, and more importantly in sementics, of SkFontHostGravatar reed@android.com2009-03-04
| | | | | | | | | | | | | | - FindTypeface is now CreateTypeface, and what it returns is always considered a new instance, even if it is from a cache (in which case it will have been ref()'d. The caller must always balance its ownership by calling unref() on the result when they are done. - CloseStream is gone, since the caller can/must call stream->unref() when they are done using it. - ResolveTypeface is now ValidFontID, and just returns a bool. git-svn-id: http://skia.googlecode.com/svn/trunk@109 2bbb7eff-a529-9590-31e7-b0007b416f81
* Oops, CreateTypeface takes over ownership of the stream, instead of just ref()Gravatar reed@android.com2009-02-20
| | | | | | | | | This should be changed, for until it is, fix CreateTypefaceFromFile to not call unref() if the typeface got created. git-svn-id: http://skia.googlecode.com/svn/trunk@94 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement CreateTypefaceFromFileGravatar reed@android.com2009-02-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@93 2bbb7eff-a529-9590-31e7-b0007b416f81
* handle failure when creating a scalercontextGravatar reed@android.com2009-02-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@90 2bbb7eff-a529-9590-31e7-b0007b416f81
* update makefile for newly moved FactoriesGravatar reed@android.com2009-01-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@77 2bbb7eff-a529-9590-31e7-b0007b416f81
* pull from android: use registry to build up list of image codecsGravatar reed@android.com2009-01-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@76 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unneeded SK_BUILD_FOR_... checks in SkBitmap.hGravatar reed@android.com2009-01-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@72 2bbb7eff-a529-9590-31e7-b0007b416f81
* add crude Makefile (someone please help!)Gravatar reed@android.com2009-01-16
| | | | | | | | make SkFloatBits.cpp compile w/o floats git-svn-id: http://skia.googlecode.com/svn/trunk@69 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix formatting issuesGravatar reed@android.com2009-01-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@67 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix multiple warnings (e.g. hidden virtuals, unused static functions)Gravatar reed@android.com2009-01-14
| | | | | | | | update freetype version-check for const git-svn-id: http://skia.googlecode.com/svn/trunk@66 2bbb7eff-a529-9590-31e7-b0007b416f81
* update to build with the latest SkFontHost interfaceGravatar reed@android.com2009-01-14
| | | | | | | | not runtime tested yet git-svn-id: http://skia.googlecode.com/svn/trunk@65 2bbb7eff-a529-9590-31e7-b0007b416f81
* add optimization for width==1 bitmaps in shader procsGravatar reed@android.com2009-01-13
| | | | | | | | odd warning fixes and cleanup git-svn-id: http://skia.googlecode.com/svn/trunk@63 2bbb7eff-a529-9590-31e7-b0007b416f81
* separate image encode and decodeGravatar reed@android.com2009-01-06
| | | | | | | | remove obsolete build-flag for encode git-svn-id: http://skia.googlecode.com/svn/trunk@56 2bbb7eff-a529-9590-31e7-b0007b416f81
* Initial automake and autoconf files to build core into libskia.a.Gravatar joe.gregorio2009-01-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@54 2bbb7eff-a529-9590-31e7-b0007b416f81
* pull from android - add createfromfile entry-pointGravatar reed@android.com2008-12-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@51 2bbb7eff-a529-9590-31e7-b0007b416f81
* update more sample code to new compose shader headerGravatar reed@android.com2008-12-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@48 2bbb7eff-a529-9590-31e7-b0007b416f81