|
|
DescriptionReplace font name table access with standard Skia function.
Remove partial name detection.
Fix typo in custom deserializer to use the sk_ truncated font name.
Committed: https://skia.googlesource.com/skia/+/4f588b5b617da169914e3829389f02883ca70b7c
Patch Set 1 #Patch Set 2 : replace custom font accessor with otutils #Patch Set 3 : remove temp typeface mod #
Total comments: 6
Patch Set 4 : address feedback #Messages
Total messages: 22 (9 generated)
caryclark@chromium.org changed reviewers: + bungeman@google.com
caryclark@chromium.org changed reviewers: + caryclark@chromium.org
The CQ bit was checked by caryclark@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327683002/40001
Note for Reviewers: The CQ is waiting for an approval. If you believe that the CL is not ready yet, or if you would like to L-G-T-M with comments then please uncheck the CQ checkbox. Waiting for LGTM from valid reviewer(s) till 2015-09-02 02:24 UTC
https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... File src/utils/SkWhitelistTypefaces.cpp (right): https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... src/utils/SkWhitelistTypefaces.cpp:43: SkTypeface::LocalizedStrings* nameIter = I think this might be better as SkAutoTUref<SkTypeface::LocalizedStrings> nameIter( SkOTUtils::LocalizedStrings_NameTable::CreateForFamilyNames(*tf); since one should call 'unref' on it to clean it up. https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... src/utils/SkWhitelistTypefaces.cpp:47: fontNameStr = familyNameLocalized.fString.c_str(); Is there a reason for the '.c_str()'? It seems fontNameStr = familyNameLocalized.fString should do the same thing, but just refcount the underlying data rather than copy it. https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... src/utils/SkWhitelistTypefaces.cpp:55: nameIter = SkOTUtils::LocalizedStrings_NameTable::CreateForFamilyNames(*tf); Does all of this (down to the '}') belong in the '#if WHITELIST_DEBUG'? It doesn't seem to have any effect on the outcome, except for printing out the names. I'm assuming the intention here is to just return -1 as the fall-through, and the rest here is debug code.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from a full Skia committer from https://skia.googlesource.com/skia/+/master/CQ_COMMITTERS
https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... File src/utils/SkWhitelistTypefaces.cpp (right): https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... src/utils/SkWhitelistTypefaces.cpp:43: SkTypeface::LocalizedStrings* nameIter = On 2015/09/01 20:47:51, bungeman1 wrote: > I think this might be better as > > SkAutoTUref<SkTypeface::LocalizedStrings> nameIter( > SkOTUtils::LocalizedStrings_NameTable::CreateForFamilyNames(*tf); > > since one should call 'unref' on it to clean it up. Done. https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... src/utils/SkWhitelistTypefaces.cpp:47: fontNameStr = familyNameLocalized.fString.c_str(); On 2015/09/01 20:47:51, bungeman1 wrote: > Is there a reason for the '.c_str()'? It seems > > fontNameStr = familyNameLocalized.fString > > should do the same thing, but just refcount the underlying data rather than copy > it. Done. https://codereview.chromium.org/1327683002/diff/40001/src/utils/SkWhitelistTy... src/utils/SkWhitelistTypefaces.cpp:55: nameIter = SkOTUtils::LocalizedStrings_NameTable::CreateForFamilyNames(*tf); On 2015/09/01 20:47:51, bungeman1 wrote: > Does all of this (down to the '}') belong in the '#if WHITELIST_DEBUG'? It > doesn't seem to have any effect on the outcome, except for printing out the > names. I'm assuming the intention here is to just return -1 as the fall-through, > and the rest here is debug code. Done.
The CQ bit was checked by caryclark@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327683002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327683002/60001
The CQ bit was unchecked by commit-bot@chromium.org
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full Skia committer from https://skia.googlesource.com/skia/+/master/CQ_COMMITTERS
The CQ bit was checked by caryclark@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327683002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327683002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by bungeman@google.com
lgtm
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327683002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327683002/60001
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/4f588b5b617da169914e3829389f02883ca70b7c |