Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 185293018: WIP -- SkFont (Closed)

Created:
6 years, 9 months ago by reed1
Modified:
6 years, 7 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : new take on flags #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : add MaskType #

Patch Set 8 : #

Patch Set 9 : initial impl of Testing_CreateFromPaint #

Total comments: 3

Patch Set 10 : dox relating to how Paint relates to Font #

Patch Set 11 : add initial tests #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -0 lines) Patch
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A include/core/SkFont.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +151 lines, -0 lines 1 comment Download
A src/core/SkFont.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +158 lines, -0 lines 0 comments Download
M tests/FontMgrTest.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
reed1
6 years, 9 months ago (2014-03-04 19:57:46 UTC) #1
bungeman-skia
https://codereview.chromium.org/185293018/diff/70001/include/core/SkFont.h File include/core/SkFont.h (right): https://codereview.chromium.org/185293018/diff/70001/include/core/SkFont.h#newcode22 include/core/SkFont.h:22: enum Flags { Should requests for synthetics go here ...
6 years, 9 months ago (2014-03-25 19:51:44 UTC) #2
bungeman-skia
https://codereview.chromium.org/185293018/diff/150001/include/core/SkFont.h File include/core/SkFont.h (right): https://codereview.chromium.org/185293018/diff/150001/include/core/SkFont.h#newcode24 include/core/SkFont.h:24: * Us the system's automatic hinting mechanism to hint ...
6 years, 9 months ago (2014-03-26 16:23:39 UTC) #3
reed1
https://codereview.chromium.org/185293018/diff/150001/include/core/SkFont.h File include/core/SkFont.h (right): https://codereview.chromium.org/185293018/diff/150001/include/core/SkFont.h#newcode24 include/core/SkFont.h:24: * Us the system's automatic hinting mechanism to hint ...
6 years, 9 months ago (2014-03-26 18:05:00 UTC) #4
bungeman-skia
https://codereview.chromium.org/185293018/diff/210001/src/core/SkFont.cpp File src/core/SkFont.cpp (right): https://codereview.chromium.org/185293018/diff/210001/src/core/SkFont.cpp#newcode134 src/core/SkFont.cpp:134: if (SkPaint::kFull_Hinting == paint.getHinting()) { I believe that on ...
6 years, 9 months ago (2014-03-27 19:13:15 UTC) #5
reed1
6 years, 8 months ago (2014-04-07 18:59:56 UTC) #6
reed1
ptal -- I propose to land this, and then continue iterating on it (but several ...
6 years, 8 months ago (2014-04-08 14:36:18 UTC) #7
bungeman-skia
sure, why not? lgtm
6 years, 8 months ago (2014-04-08 14:57:39 UTC) #8
f(malita)
lgtm
6 years, 8 months ago (2014-04-08 14:59:11 UTC) #9
reed1
Committed patchset #11 manually as r14090 (presubmit successful).
6 years, 8 months ago (2014-04-08 15:04:37 UTC) #10
bungeman-skia
6 years, 7 months ago (2014-05-02 19:29:43 UTC) #11
Message was sent while issue was closed.
This is a rather late comment, but seemed the best place to put it.

https://codereview.chromium.org/185293018/diff/250001/include/core/SkFont.h
File include/core/SkFont.h (right):

https://codereview.chromium.org/185293018/diff/250001/include/core/SkFont.h#n...
include/core/SkFont.h:99: kEmbeddedBitmaps_Flag       = 1 << 4,
I was just working on this with relation to DirectWrite, and wanted to point out
that the kEmbeddedBitmaps_Flag is actually a hinting flag. In a certain sense,
it's 'hinting' taken to an extreme. As a result, I propose that this flag be
renamed kEnableBitmapHints_Flag (If the typeface contains embedded bitmaps, use
them. If bitmap, bytecode, and auto hints are specified, attempt to use the
bitmaps first.) Part of the reason for this is to allow the use of embedded
bitmaps, but allow the user to specify whether they want the linear metrics or
to use the bitmap metrics.

Unfortunately, I can also see a user wanting to use linear metrics for bytecode
and auto hinting, but use the bitmap advances when using bitmaps. This is, for
example, what FireFox does. However, we were trying to avoid having
kEnableXXXHints_Flag/kApplyXXXHintsToMetrics_Flag combinations.

Powered by Google App Engine
This is Rietveld 408576698