summaryrefslogtreecommitdiff
path: root/core/SkFontHost.cpp
AgeCommit message (Collapse)Author
2014-03-21A remotable font management interface and DirectWrite implementation.bungeman@google.com
The introduced SkRemotableFontMgr is a font management interface designed for simple and fast proxy support. SkFontMgr_Indirect bridges a SkRemotableFontMgr and a local SkFontMgr to present a SkFontMgr interface. This change is to be followed by https://codereview.chromium.org/132113015/ and https://codereview.chromium.org/206693003 . R=reed@google.com Review URL: https://codereview.chromium.org/206683002 git-svn-id: http://skia.googlecode.com/svn/trunk/src@13897 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-04Make SkFontMgr interface const.commit-bot@chromium.org
COLLABORATOR=mtklein@chromium.org BUG=skia: R=reed@google.com, bungeman@google.com, mtklein@chromium.org Author: mtklein@google.com Review URL: https://codereview.chromium.org/134643028 git-svn-id: http://skia.googlecode.com/svn/trunk/src@13314 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-05Fix compilation with SK_ENABLE_INST_COUNT=1commit-bot@chromium.org
Add INHERITED declarations to class declarations that prevent compilation with the flag. Remove SK_DEFINE_INST_COUNT from all class implementations. Instead, use function-local static variables in the reference count helper classes to create the global instances to store the needed info. The accessor functions are defined inline in the helper classes, so definitions are not needed. The initialization point of the variables should be as well defined as previously. Remove SK_DECLARE_INST_COUNT_TEMPLATE and use SK_DECLARE_INST_COUNT instead. This avoids possible future compilation errors further. For SK_ENABLE_INST_COUNT=0 compilation, add an empty static member function to all classes that use SK_DECLARE_INST_COUNT and SK_DECLARE_INST_COUNT_ROOT macros. The function ensures that classes contain public INHERITED typedef. This member function seems to be compiled away. This shouĺd ensure that part of the compilation errors are caught earlier. Also adds DSK_DECLARE_INST_COUNT to few SkPDFDict subclasses. R=robertphillips@google.com, richardlin@chromium.org, bsalomon@google.com Author: kkinnunen@nvidia.com Review URL: https://codereview.chromium.org/98703002 git-svn-id: http://skia.googlecode.com/svn/trunk/src@12501 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-11-11Android FontHost cannot use FontMgr yet.bungeman@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@12221 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-11-11Re-add NULL FontMgr::Factory hadnling code removed in r12217.bungeman@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@12218 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-11-11Remove SK_FONTHOST_USES_FONTMGR.bungeman@google.com
Review URL: https://codereview.chromium.org/66783003 git-svn-id: http://skia.googlecode.com/svn/trunk/src@12217 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-08-22My clang now doesn't complain about !"foo".mtklein@google.com
BUG= R=robertphillips@google.com Review URL: https://codereview.chromium.org/22875037 git-svn-id: http://skia.googlecode.com/svn/trunk/src@10874 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-08-21Implement SkEmptyFontMgr::onLegacyCreateTypeface and make pure virtual.bungeman@google.com
R=reed@google.com Review URL: https://codereview.chromium.org/22849025 git-svn-id: http://skia.googlecode.com/svn/trunk/src@10852 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-31add impls for createfromstream for fontconfig fontmgrreed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@10469 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-30refactoring for SK_FONTHOST_USES_FONTMGR optionreed@google.com
BUG= R=bungeman@google.com Review URL: https://codereview.chromium.org/21149008 git-svn-id: http://skia.googlecode.com/svn/trunk/src@10440 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-11The two leaks are:commit-bot@chromium.org
missing unrefs in megalooper GM missing reset capability in oval renderer This CL also expands the instance counting system to some recently adding classes (e.g., SkFontStyleSet) R=bsalomon@google.com, jvanverth@google.com Author: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/18461007 git-svn-id: http://skia.googlecode.com/svn/trunk/src@10030 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-04-19return empty fontstyleset instead of nullreed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8767 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-29add matcher to fontstylesetreed@google.com
Review URL: https://codereview.chromium.org/13312002 git-svn-id: http://skia.googlecode.com/svn/trunk/src@8444 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-27always call SkFontMgr::Factory() (now that everyone has impl'd it)reed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8416 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-27Sanitizing source files in Skia_Periodic_House_Keepingskia.committer@gmail.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8404 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-26fix infinite recursion calling (non)virtualreed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8398 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-26respect slant paramreed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8397 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-26#if 0 reference to SkFontMgr::Factory for nowreed@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8396 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-26impl part of SKFontMgr for macreed@google.com
Here is some test code SkFontMgr* mgr = SkFontMgr::RefDefault(); for (int i = 0; i < mgr->countFamilies(); ++i) { SkString familyName; mgr->getFamilyName(i, &familyName); SkDebugf("%s\n", familyName.c_str()); SkFontStyleSet* styles = mgr->createStyleSet(i); for (int j = 0; j < styles->count(); ++j) { SkFontStyle fs; SkString styleName; styles->getStyle(j, &fs, &styleName); SkTypeface* face = styles->createTypeface(j); SkDebugf(" %s [%d %d] %x\n", styleName.c_str(), fs.weight(), fs.width(), face); } styles->unref(); } mgr->unref(); Review URL: https://codereview.chromium.org/13094005 git-svn-id: http://skia.googlecode.com/svn/trunk/src@8395 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-13Sanitizing source files in Skia_Periodic_House_Keepingskia.committer@gmail.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8120 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-12add (temp) SkFontLCDConfig class to hold LCD getters/setters. This will allowreed@google.com
us to make SkFontHost.h private (once webkit switches to the SkFontLCDConfig api) Stage 2 is to either move this code into chrome/webkit, or change the callers to perform their own globals management. Review URL: https://codereview.chromium.org/12623011 git-svn-id: http://skia.googlecode.com/svn/trunk/src@8107 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-28Automatic update of all copyright notices to reflect new license terms.epoger@google.com
I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk/src@1982 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-07-21Delete duplicated code.agl@chromium.org
patch went wrong and duplicated SkFontHost.cpp. git-svn-id: http://skia.googlecode.com/svn/trunk/src@276 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-07-21Subpixel glyph rendering support.agl@chromium.org
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/src@275 2bbb7eff-a529-9590-31e7-b0007b416f81