|
|
DescriptionAllow font to use below 1.0f scale
* If the raw device scale factor is lower than 1.0, shrink the font size further.
BUG=646254
TEST=manual
Committed: https://crrev.com/a98afff3156eb88b39f82cfae23d99bed436bb3c
Cr-Commit-Position: refs/heads/master@{#430311}
Patch Set 1 : Allow font to use below 1.0f scale #
Total comments: 4
Patch Set 2 : Allow font to use below 1.0f scale #
Total comments: 1
Patch Set 3 : Allow font to use below 1.0f scale #
Total comments: 6
Patch Set 4 : Allow font to use below 1.0f scale #
Messages
Total messages: 67 (53 generated)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
Patchset #2 (id:40001) has been deleted
Patchset #1 (id:1) has been deleted
Patchset #1 (id:60001) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Patchset #1 (id:80001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:120001) has been deleted
Patchset #1 (id:100001) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Patchset #1 (id:140001) has been deleted
Description was changed from ========== Allow font to use below 1.0f scale BUG=646254 ========== to ========== Allow font to use below 1.0f scale * add a flag --enable-xpi-for-dsf for users who want to control scale factor by X's DPI. * If the raw device scale factor is lower than 1.0, shrink the font size further. BUG=646254 TEST=manual ==========
oshima@chromium.org changed reviewers: + estade@chromium.org
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
I'm a little wary of adding this to about:flags as that's not really supposed to be a place for permanent options that users might want to toggle. Is it not possible to keep using GTK dpi settings, disallow <1 dsf, but allow the dpi to affect base font size? https://codereview.chromium.org/2441043002/diff/160001/chrome/browser/ui/libg... File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/2441043002/diff/160001/chrome/browser/ui/libg... chrome/browser/ui/libgtk2ui/gtk2_ui.cc:388: // The |device_scale_factor| is used to canel the scale to be applyed by UI spelling nits: cancel, applied https://codereview.chromium.org/2441043002/diff/160001/chrome/common/chrome_s... File chrome/common/chrome_switches.h (right): https://codereview.chromium.org/2441043002/diff/160001/chrome/common/chrome_s... chrome/common/chrome_switches.h:395: extern const char kEnableXDPIForDSF[]; nit: kEnableXDpiForDsf
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
> I'm a little wary of adding this to about:flags as that's not really supposed to > be a place for permanent options that users might want to toggle. The command line isn't for permanent thing either. We're just doing this for very minor use case, so I'm fine with either way. Let me know if you want to remove it. > Is it not > possible to keep using GTK dpi settings, disallow <1 dsf, but allow the dpi to > affect base font size? Most people uses a configuration tool to adjust the UI scale, which uses GTK's settings. If we use X'dpi to change the font, people who uses these config tool will see tiny text because X's dpi stays the same. We've also seen that some people have weird DPI values (not 96), so we want to enable this only for people who explicitly enabled. https://codereview.chromium.org/2441043002/diff/160001/chrome/browser/ui/libg... File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/2441043002/diff/160001/chrome/browser/ui/libg... chrome/browser/ui/libgtk2ui/gtk2_ui.cc:388: // The |device_scale_factor| is used to canel the scale to be applyed by UI On 2016/10/25 15:21:14, Evan Stade wrote: > spelling nits: cancel, applied Done. https://codereview.chromium.org/2441043002/diff/160001/chrome/common/chrome_s... File chrome/common/chrome_switches.h (right): https://codereview.chromium.org/2441043002/diff/160001/chrome/common/chrome_s... chrome/common/chrome_switches.h:395: extern const char kEnableXDPIForDSF[]; On 2016/10/25 15:21:14, Evan Stade wrote: > nit: kEnableXDpiForDsf Done.
I guess my point is that of the two bullet points in your CL description, it seems like the latter should be sufficient for allowing users to get smaller fonts but still having a minimum DSF of 1x. I don't think we need to support a different way of setting DPI that's outside of the GTK system (users can change how they're setting DPI). https://codereview.chromium.org/2441043002/diff/180001/chrome/browser/ui/libg... File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/2441043002/diff/180001/chrome/browser/ui/libg... chrome/browser/ui/libgtk2ui/gtk2_ui.cc:360: double GetDPI() { nit: GetDpi
On 2016/10/25 17:27:02, Evan Stade wrote: > I guess my point is that of the two bullet points in your CL description, it > seems like the latter should be sufficient for allowing users to get smaller > fonts but still having a minimum DSF of 1x. I don't think we need to support a > different way of setting DPI that's outside of the GTK system (users can change > how they're setting DPI). If you set the GTK's scale lower, it will make entire UI smaller. Let me double check with the reporter if that's okay with him. > > https://codereview.chromium.org/2441043002/diff/180001/chrome/browser/ui/libg... > File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): > > https://codereview.chromium.org/2441043002/diff/180001/chrome/browser/ui/libg... > chrome/browser/ui/libgtk2ui/gtk2_ui.cc:360: double GetDPI() { > nit: GetDpi
Patchset #3 (id:190001) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #4 (id:230001) has been deleted
Description was changed from ========== Allow font to use below 1.0f scale * add a flag --enable-xpi-for-dsf for users who want to control scale factor by X's DPI. * If the raw device scale factor is lower than 1.0, shrink the font size further. BUG=646254 TEST=manual ========== to ========== Allow font to use below 1.0f scale * If the raw device scale factor is lower than 1.0, shrink the font size further. BUG=646254 TEST=manual ==========
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Patchset #3 (id:210001) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
I removed Xdpi and flags. PTAL.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... File chrome/browser/ui/libgtkui/gtk_ui.cc (right): https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... chrome/browser/ui/libgtkui/gtk_ui.cc:379: double GetFontSizePixelsInPoint(float device_scale_factor) { perhaps this param could be called ui_scale_factor or ui_dsf to be clearer about its role? https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... chrome/browser/ui/libgtkui/gtk_ui.cc:388: // the raw value however, beacuse the 1.0~1.3 is rounded to 1.0. why not allow users to bump font size slightly? The drawing issues in the 1-1.3 range don't apply to fonts, do they? also nit: s/beacuse/because https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... File chrome/browser/ui/libgtkui/gtk_ui.h (right): https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... chrome/browser/ui/libgtkui/gtk_ui.h:203: float device_scale_factor_ = 1.0f; seems like we should init things in the same place (at least those that are init'd with const expressions), either all in the ctor init list or all in this file I am ambivalent about which one and I dunno what the style guide has to say about it, if anything.
https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... File chrome/browser/ui/libgtkui/gtk_ui.cc (right): https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... chrome/browser/ui/libgtkui/gtk_ui.cc:379: double GetFontSizePixelsInPoint(float device_scale_factor) { On 2016/11/03 16:38:03, Evan Stade wrote: > perhaps this param could be called ui_scale_factor or ui_dsf to be clearer about > its role? changed to ui_device_scale_factor. https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... chrome/browser/ui/libgtkui/gtk_ui.cc:388: // the raw value however, beacuse the 1.0~1.3 is rounded to 1.0. On 2016/11/03 16:38:03, Evan Stade wrote: > why not allow users to bump font size slightly? The drawing issues in the 1-1.3 > range don't apply to fonts, do they? I want to keep the current behavior for dsf>1 case, at least for now. With new scaling scheme in blink, I think we can relax this but I'll do that in a separate CL. > > also nit: s/beacuse/because > https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... File chrome/browser/ui/libgtkui/gtk_ui.h (right): https://codereview.chromium.org/2441043002/diff/250001/chrome/browser/ui/libg... chrome/browser/ui/libgtkui/gtk_ui.h:203: float device_scale_factor_ = 1.0f; On 2016/11/03 16:38:03, Evan Stade wrote: > seems like we should init things in the same place (at least those that are > init'd with const expressions), either all in the ctor init list or all in this > file > > I am ambivalent about which one and I dunno what the style guide has to say > about it, if anything. I moved default_font_xxx to the header.
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
oshima@chromium.org changed reviewers: + sky@chromium.org
sky -> ui/views, c/b/ui/views
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
LGTM
The CQ bit was checked by oshima@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from estade@chromium.org Link to the patchset: https://codereview.chromium.org/2441043002/#ps270001 (title: "Allow font to use below 1.0f scale")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Allow font to use below 1.0f scale * If the raw device scale factor is lower than 1.0, shrink the font size further. BUG=646254 TEST=manual ========== to ========== Allow font to use below 1.0f scale * If the raw device scale factor is lower than 1.0, shrink the font size further. BUG=646254 TEST=manual ==========
Message was sent while issue was closed.
Committed patchset #4 (id:270001)
Message was sent while issue was closed.
Description was changed from ========== Allow font to use below 1.0f scale * If the raw device scale factor is lower than 1.0, shrink the font size further. BUG=646254 TEST=manual ========== to ========== Allow font to use below 1.0f scale * If the raw device scale factor is lower than 1.0, shrink the font size further. BUG=646254 TEST=manual Committed: https://crrev.com/a98afff3156eb88b39f82cfae23d99bed436bb3c Cr-Commit-Position: refs/heads/master@{#430311} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/a98afff3156eb88b39f82cfae23d99bed436bb3c Cr-Commit-Position: refs/heads/master@{#430311} |