Skip to content

The M Udar font ​

M Udar (Russian for "a hit") is the kit's own display face: heavy, slanted 12°, square ends, sharp corners. It covers Latin and Cyrillic capitals, digits and the punctuation sound effects need. The kit draws it from stroke skeletons, so every letter shares one stroke width and one angle.

ts
import 'vue-manga-ui/font.css'; // 16 KB WOFF, loaded only when text on the page needs it

--m-font-display lists it first, so buttons, tabs, toasts and tooltips switch to it as soon as the stylesheet is imported. Canvas lettering (sfx()) uses it for Latin and Cyrillic words.

БАХ! ХРЯСЬ! WHAM!

АБВГДЕЁЖЗИЙКЛМН
ОПРСТУФХЦЧШЩЪЫЬЭЮЯ

ABCDEFGHIJKLM
NOPQRSTUVWXYZ

0123456789

! ? . , : ; … - – — ' " « » „ “ ” ( ) / + = % № * # @ &

Sizes ​

Удар держит удар

Съешь же ещё этих мягких французских булок

The quick brown fox jumps over the lazy dog

Сохранить · Отмена · Save · Cancel

Use it in your own CSS ​

css
.headline {
  font: italic 800 3rem/1 'M Udar', Impact, sans-serif;
}
  • Capitals only. Lowercase input draws capitals, so Save and SAVE look the same.
  • Ask for italic. The face is declared italic with weights 100–900. font-style: italic and any weight use it exactly as drawn. Without italic the browser still picks it, because it is the only face.
  • Other scripts fall through. unicode-range lists exactly the drawn characters. Kana, accented Latin and the rarer ASCII symbols come from the next font in the stack.
  • Kerned. Pairs like ТА, AV or Г. tuck in; the pairs are measured from the outlines when the font is built.

Limits ​

  • Latin accents (é, ü), Ukrainian Ї and Є, and the symbols $, <, >, _, ^, ~, |, backslash, backtick, square brackets and braces are not drawn yet. Ukrainian І is drawn.

Changing a letter ​

The font's source is scripts/font/glyphs.ts: each glyph is a list of center lines on a 100-unit cap grid. Edit a skeleton, run npm run font, and commit font/. tests/font.test.ts fails while the committed font is stale, and checks that every character is drawn and fits the line.