mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
todo notes and clean up #4348
This commit is contained in:
@@ -882,7 +882,6 @@ public class Toolkit {
|
||||
if (monoFont == null) {
|
||||
try {
|
||||
monoFont = createFont("SourceCodePro-Regular.ttf", size);
|
||||
//monoBoldFont = createFont("SourceCodePro-Semibold.ttf", size);
|
||||
monoBoldFont = createFont("SourceCodePro-Bold.ttf", size);
|
||||
|
||||
// additional language constraints
|
||||
@@ -893,15 +892,13 @@ public class Toolkit {
|
||||
monoBoldFont = createFont("AnonymousPro-Bold.ttf", size);
|
||||
}
|
||||
}
|
||||
// issue2886
|
||||
// follback for Chinese, Korean, Japanese.
|
||||
// https://github.com/processing/processing/issues/2886
|
||||
String lang = Language.getLanguage();
|
||||
if (Locale.CHINESE.getLanguage().equals(lang) ||
|
||||
Locale.JAPANESE.getLanguage().equals(lang) ||
|
||||
Locale.KOREAN.getLanguage().equals(lang)) {
|
||||
Locale.JAPANESE.getLanguage().equals(lang) ||
|
||||
Locale.KOREAN.getLanguage().equals(lang)) {
|
||||
sansFont = new Font("Monospaced", Font.PLAIN, size);
|
||||
sansBoldFont = new Font("Monospaced", Font.BOLD, size);
|
||||
Messages.log("load Monospaced font for CJK.");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Messages.loge("Could not load mono font", e);
|
||||
@@ -939,16 +936,14 @@ public class Toolkit {
|
||||
sansBoldFont = createFont("Carlito-Bold.ttf", size);
|
||||
}
|
||||
}
|
||||
|
||||
// issue2886
|
||||
// follback for Chinese, Korean, Japanese.
|
||||
|
||||
// https://github.com/processing/processing/issues/2886
|
||||
String lang = Language.getLanguage();
|
||||
if (Locale.CHINESE.getLanguage().equals(lang) ||
|
||||
Locale.JAPANESE.getLanguage().equals(lang) ||
|
||||
Locale.KOREAN.getLanguage().equals(lang)) {
|
||||
Locale.JAPANESE.getLanguage().equals(lang) ||
|
||||
Locale.KOREAN.getLanguage().equals(lang)) {
|
||||
sansFont = new Font("SansSerif", Font.PLAIN, size);
|
||||
sansBoldFont = new Font("SansSerif", Font.BOLD, size);
|
||||
Messages.log("load sans font for CJK.");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Messages.loge("Could not load sans font", e);
|
||||
|
||||
@@ -17,6 +17,16 @@ X https://github.com/processing/processing/pull/4311
|
||||
X processing-java output as UTF-8 makes Windows unhappy
|
||||
X https://github.com/processing/processing/issues/1633
|
||||
X https://github.com/processing/processing/pull/4350
|
||||
X Add support for symlinks to exported applications in linux
|
||||
X https://github.com/processing/processing/issues/4318
|
||||
X https://github.com/processing/processing/pull/4319
|
||||
X Added Ukrainian localization
|
||||
X https://github.com/processing/processing/pull/4343
|
||||
X Non-western language hint text for toolbar buttons not correctly displayed
|
||||
X https://github.com/processing/processing/issues/2886
|
||||
X load fallback font for CJK (Chinese, Japanese and Korean)
|
||||
X https://github.com/processing/processing/pull/4348
|
||||
|
||||
|
||||
jakub
|
||||
X Update app to Java 8
|
||||
@@ -187,8 +197,6 @@ _ how are we going to handle fonts for other languages?
|
||||
_ two new fonts have been added, other languages will need more
|
||||
_ need a decent sans with with Unicode coverage
|
||||
_ i.e. https://github.com/processing/processing/pull/3025
|
||||
_ Non-western language hint text for toolbar buttons not correctly displayed
|
||||
_ https://github.com/processing/processing/issues/2886
|
||||
|
||||
|
||||
pde/build
|
||||
|
||||
Reference in New Issue
Block a user