electron/shell/common
Sorah Fukumori f176d2494f
fix: respect system language preferences on Win/macOS (#23247)
This commit fixes https://github.com/electron/electron/issues/18829

Previously the full preferences set to OS was not given to Chromium.

Also, this commit improves fallback font selection for CJK text.
Chromium uses browser languages to determine fallback fonts on Windows,
especially kanji/han characters in CJK.

For instance, when user sets 'en-US, ja-JP' to Accept-Language,
while Chromium chooses Japanese font for kanji text, but Electron
chooses Chinese font.  This is because only the first language was given
to Accept-Language on Electron.

This patch is based on https://github.com/electron/electron/pull/15532

Co-authored-by: Nitish Sakhawalkar <nitsakh@icloud.com>
Co-authored-by: Kasumi Hanazuki <kasumi@rollingapple.net>

Co-authored-by: Nitish Sakhawalkar <nitsakh@icloud.com>
Co-authored-by: Kasumi Hanazuki <kasumi@rollingapple.net>
2020-05-04 10:49:29 -07:00
..
api style: use build/include_directory for NOLINT (#23266) 2020-04-24 12:57:41 -07:00
asar refactor: pass base::Value by value in JS API implementations (#20809) 2019-10-30 14:30:59 +09:00
crash_reporter refactor: remove extra args from crashreporter init (#23144) 2020-04-20 14:44:09 -07:00
extensions feat(extensions): add chrome.tabs.connect API (#22457) 2020-03-05 09:59:32 -05:00
gin_converters chore: bump chromium to 0f4170320ff37e971064916aed1dc (master) (#23285) 2020-04-30 13:20:44 -07:00
gin_helper refactor: ginify Menu (#22916) 2020-04-02 16:07:56 -07:00
mac fix: build when some buildflags are disabled (#23307) 2020-04-28 23:16:10 -07:00
resources/mac fix: revert {Atom => Electron}Application rename (#22206) 2020-02-21 11:05:03 -08:00
application_info.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
application_info.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
application_info_linux.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
application_info_mac.mm refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
application_info_win.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
color_util.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
color_util.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
electron_command_line.cc style: use build/include_directory for NOLINT (#23266) 2020-04-24 12:57:41 -07:00
electron_command_line.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_constants.cc chore: bump chromium to 0f4170320ff37e971064916aed1dc (master) (#23285) 2020-04-30 13:20:44 -07:00
electron_constants.h chore: bump chromium to 0f4170320ff37e971064916aed1dc (master) (#23285) 2020-04-30 13:20:44 -07:00
heap_snapshot.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
heap_snapshot.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
key_weak_map.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
keyboard_util.cc chore: bump chromium to 279aeeec3c9fe2237bc31f776f269 (master) (#21521) 2020-01-17 10:41:52 -08:00
keyboard_util.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
language_util.h fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
language_util_linux.cc fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
language_util_mac.mm fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
language_util_win.cc fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
mouse_util.cc chore: bump chromium to bc8f70ed4cfe2262ea833750eaddb (master) (#22649) 2020-03-14 16:54:14 -04:00
mouse_util.h chore: bump chromium to bc8f70ed4cfe2262ea833750eaddb (master) (#22649) 2020-03-14 16:54:14 -04:00
node_bindings.cc fix: isolate callbacks in node_bindings (#23261) 2020-04-27 17:03:40 +09:00
node_bindings.h refactor: use Node.js isolate setup in node mode (#23213) 2020-04-28 09:10:27 -07:00
node_bindings_linux.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
node_bindings_linux.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
node_bindings_mac.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
node_bindings_mac.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
node_bindings_win.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
node_bindings_win.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
node_includes.h refactor: remove use of Node's DebugOptions (#22083) 2020-02-09 18:42:02 +00:00
node_util.cc refactor: move CompileAndCall to a helper (#20675) 2019-10-23 09:26:32 -07:00
node_util.h refactor: move CompileAndCall to a helper (#20675) 2019-10-23 09:26:32 -07:00
options_switches.cc feat: custom positioning for traffic light buttons (#21781) 2020-01-23 10:13:08 -08:00
options_switches.h feat: custom positioning for traffic light buttons (#21781) 2020-01-23 10:13:08 -08:00
platform_util.h feat: convert shell.openItem to async shell.openPath (#20682) 2019-11-07 23:08:43 -08:00
platform_util_linux.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
platform_util_mac.mm feat: convert shell.openItem to async shell.openPath (#20682) 2019-11-07 23:08:43 -08:00
platform_util_win.cc chore: ShowItemInFolder should use COMSTA (#22614) 2020-03-10 14:12:22 -07:00
process_util.cc feat: enable native extensions support (#21814) 2020-02-03 14:01:10 -08:00
process_util.h feat: enable native extensions support (#21814) 2020-02-03 14:01:10 -08:00
skia_util.cc refactor: move gfx::ImageSkia functions to their own util file (#19460) 2019-07-30 13:49:24 -07:00
skia_util.h refactor: move gfx::ImageSkia functions to their own util file (#19460) 2019-07-30 13:49:24 -07:00
v8_value_converter.cc chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
v8_value_converter.h chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
v8_value_serializer.cc feat: MessagePorts in the main process (#22404) 2020-03-11 18:07:54 -07:00
v8_value_serializer.h feat: MessagePorts in the main process (#22404) 2020-03-11 18:07:54 -07:00
world_ids.h fix(extensions): set lowest isolated world id (#22212) 2020-02-24 13:33:58 +09:00