mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 10:16:14 +00:00
Add font and its license for Korean then Apply it
pokemon-dppt from FontStruction and its license
This commit is contained in:
parent
ec7463e6ef
commit
fe7fe845c8
@ -18,6 +18,10 @@
|
||||
font-family: 'emerald';
|
||||
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-family: 'pkmnems';
|
||||
|
4
public/fonts/license_pokemon-dppt.txt
Normal file
4
public/fonts/license_pokemon-dppt.txt
Normal file
@ -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/).
|
BIN
public/fonts/pokemon-dppt.ttf
Normal file
BIN
public/fonts/pokemon-dppt.ttf
Normal file
Binary file not shown.
@ -303,7 +303,7 @@ export class LoadingScene extends SceneBase {
|
||||
y: height / 2 - 24,
|
||||
text: '0%',
|
||||
style: {
|
||||
font: "72px emerald",
|
||||
font: "72px emerald, dppt",
|
||||
color: "#ffffff",
|
||||
},
|
||||
});
|
||||
@ -314,7 +314,7 @@ export class LoadingScene extends SceneBase {
|
||||
y: height / 2 + 48,
|
||||
text: "",
|
||||
style: {
|
||||
font: "48px emerald",
|
||||
font: "48px emerald, dppt",
|
||||
color: "#ffffff",
|
||||
},
|
||||
});
|
||||
|
@ -91,7 +91,7 @@ Phaser.GameObjects.Text.prototype.setPositionRelative = setPositionRelative;
|
||||
BBCodeText.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;
|
||||
|
||||
|
@ -144,7 +144,7 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler {
|
||||
const wrappedTextLines = this.message.runWordWrap(this.message.text).split(/\n/g);
|
||||
const textLinesCount = wrappedTextLines.length;
|
||||
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);
|
||||
const lastLineWidth = lastLineTest.displayWidth;
|
||||
lastLineTest.destroy();
|
||||
|
@ -68,7 +68,7 @@ function getTextStyleOptions(style: TextStyle, uiTheme: UiTheme, extraStyleOptio
|
||||
let shadowSize = 6;
|
||||
|
||||
let styleOptions: Phaser.Types.GameObjects.Text.TextStyle = {
|
||||
fontFamily: 'emerald',
|
||||
fontFamily: 'emerald, dppt',
|
||||
fontSize: '96px',
|
||||
color: getTextColor(style, false, uiTheme),
|
||||
padding: {
|
||||
|
Loading…
Reference in New Issue
Block a user