Forum > Graphic Tutorials

[MV] Retro Text Font

(1/1)

GameDev:

Imagens:
PixelMplus10-Regular.png
PixelMplus12-Regular.png

Credits:
itouhiroはてなブログ
(http://itouhiro.hatenablog.com/entry/20130602/font)

Fontes:
[*]PixelMplus10-Bold.ttf
[*]PixelMplus10-Regular.ttf
[*]PixelMplus12-Bold.ttf
[*]PixelMplus12-Regular.ttf
[/list]

Download:
https://github.com/nanoeru/fondot/tree/master/PixelMplus-20130602

Após baixar, vá na pasta do seu projeto, acesse a pasta fonts, copie uma das duas fontes pra dentro dela.
Nessa mesma pasta abra o arquivo gamefont.css:

--- Code: ---@font-face {
    font-family: GameFont;
    src: url("mplus-1m-regular.ttf");
}

.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
    opacity: 0;
    pointer-events: none;
    width: 5px;
}
--- End code ---

Substitua a linha do src por está pelo nome da fonte copiada pra pasta, por exemplo:

--- Code: ---src: url("PixelMplus12-Regular.ttf");
--- End code ---

Ficará assim:

--- Code: ---@font-face {
    font-family: GameFont;
    src: url("PixelMplus12-Regular.ttf");
}

.IIV::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
    opacity: 0;
    pointer-events: none;
    width: 5px;
}
--- End code ---

Navigation

[0] Message Index

Go to full version