Last active
October 21, 2020 11:02
-
-
Save tsukumijima/74bb2f53d700b728a2b7066580c08952 to your computer and use it in GitHub Desktop.
Creative Cloud (Windows) の UI フォントを変更するツール(管理者権限必須・設定を環境に合わせて変更してください)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ***** 設定 ***** | |
# 変更するフォント名 | |
font = 'Meiryo' | |
# Creative Cloud のパス | |
cc_path = r'C:\Program Files\Adobe\Adobe Creative Cloud' | |
# ***** 設定ここまで ***** | |
# ダブルクオートで囲む | |
font = '"' + font + '"' | |
# 置換対象のファイルのパス | |
replace_files = [ | |
cc_path + r'\Components\Assets\resources\designLibraries\css\ACCC-css-light-main-scss.bundle.js', | |
cc_path + r'\ACC\resources\legacy\host\legacy\css\core.css', | |
cc_path + r'\CCDContainer\resources\index.css', | |
] | |
for replace_file in replace_files: | |
# ファイルを開く | |
with open(replace_file, mode = 'r', encoding = 'utf-8') as file: | |
replace = file.read() | |
# 文字列置換 | |
replace = replace.replace(r"'\\30E1 \\30A4 \\30EA \\30AA', '\\30D2 \\30E9 \\30AE \\30CE \\89D2 \\30B4 Pro W3', 'Hiragino Kaku Gothic Pro W3', 'Osaka', '\\FF2D \\FF33 \\FF30 \\30B4 \\30B7 \\30C3 \\30AF', 'MS PGothic'", font) | |
replace = replace.replace('"�� �ゴシヂ�", "MS PGothic"', font) | |
replace = replace.replace('"MS PGothic"', font) | |
# ファイルに書き込み | |
with open(replace_file, mode = 'w', encoding = 'utf-8') as file: | |
file.write(replace) | |
print('Replaced ' + replace_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment