Add font and its license for Korean then Apply it
pokemon-dppt from FontStruction and its licensepull/737/head
parent
ec7463e6ef
commit
fe7fe845c8
|
@ -18,6 +18,10 @@
|
||||||
font-family: 'emerald';
|
font-family: 'emerald';
|
||||||
src: url('./fonts/pokemon-emerald-pro.ttf') format('truetype');
|
src: url('./fonts/pokemon-emerald-pro.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'dppt';
|
||||||
|
src: url('./fonts/pokemon-dppt.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'pkmnems';
|
font-family: 'pkmnems';
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
The FontStruction “Pokemon DPPt”
|
||||||
|
(https://fontstruct.com/fontstructions/show/1951915) by “aztecwarrior28” is
|
||||||
|
licensed under a Creative Commons Attribution Share Alike license
|
||||||
|
(http://creativecommons.org/licenses/by-sa/3.0/).
|
Binary file not shown.
|
@ -303,7 +303,7 @@ export class LoadingScene extends SceneBase {
|
||||||
y: height / 2 - 24,
|
y: height / 2 - 24,
|
||||||
text: '0%',
|
text: '0%',
|
||||||
style: {
|
style: {
|
||||||
font: "72px emerald",
|
font: "72px emerald, dppt",
|
||||||
color: "#ffffff",
|
color: "#ffffff",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -314,7 +314,7 @@ export class LoadingScene extends SceneBase {
|
||||||
y: height / 2 + 48,
|
y: height / 2 + 48,
|
||||||
text: "",
|
text: "",
|
||||||
style: {
|
style: {
|
||||||
font: "48px emerald",
|
font: "48px emerald, dppt",
|
||||||
color: "#ffffff",
|
color: "#ffffff",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -91,7 +91,7 @@ Phaser.GameObjects.Text.prototype.setPositionRelative = setPositionRelative;
|
||||||
BBCodeText.prototype.setPositionRelative = setPositionRelative;
|
BBCodeText.prototype.setPositionRelative = setPositionRelative;
|
||||||
Phaser.GameObjects.Rectangle.prototype.setPositionRelative = setPositionRelative;
|
Phaser.GameObjects.Rectangle.prototype.setPositionRelative = setPositionRelative;
|
||||||
|
|
||||||
document.fonts.load('16px emerald').then(() => document.fonts.load('10px pkmnems'));
|
document.fonts.load('16px emerald, dppt').then(() => document.fonts.load('10px pkmnems'));
|
||||||
|
|
||||||
let game;
|
let game;
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler {
|
||||||
const wrappedTextLines = this.message.runWordWrap(this.message.text).split(/\n/g);
|
const wrappedTextLines = this.message.runWordWrap(this.message.text).split(/\n/g);
|
||||||
const textLinesCount = wrappedTextLines.length;
|
const textLinesCount = wrappedTextLines.length;
|
||||||
const lastTextLine = wrappedTextLines[wrappedTextLines.length - 1];
|
const lastTextLine = wrappedTextLines[wrappedTextLines.length - 1];
|
||||||
const lastLineTest = this.scene.add.text(0, 0, lastTextLine, { font: '96px emerald' });
|
const lastLineTest = this.scene.add.text(0, 0, lastTextLine, { font: '96px emerald, dppt' });
|
||||||
lastLineTest.setScale(this.message.scale);
|
lastLineTest.setScale(this.message.scale);
|
||||||
const lastLineWidth = lastLineTest.displayWidth;
|
const lastLineWidth = lastLineTest.displayWidth;
|
||||||
lastLineTest.destroy();
|
lastLineTest.destroy();
|
||||||
|
|
|
@ -68,7 +68,7 @@ function getTextStyleOptions(style: TextStyle, uiTheme: UiTheme, extraStyleOptio
|
||||||
let shadowSize = 6;
|
let shadowSize = 6;
|
||||||
|
|
||||||
let styleOptions: Phaser.Types.GameObjects.Text.TextStyle = {
|
let styleOptions: Phaser.Types.GameObjects.Text.TextStyle = {
|
||||||
fontFamily: 'emerald',
|
fontFamily: 'emerald, dppt',
|
||||||
fontSize: '96px',
|
fontSize: '96px',
|
||||||
color: getTextColor(style, false, uiTheme),
|
color: getTextColor(style, false, uiTheme),
|
||||||
padding: {
|
padding: {
|
||||||
|
|
Loading…
Reference in New Issue