We use cookies to improve performance and measure site usage. By clicking Accept Cookies, you agree to analytics cookies. See our Privacy Policy.

We are always improving TypeNepal with features and updates. See What's new.

Guide

How Nepali Font Encoding Works — Glyphs, Code Points & Mappings

नेपाली फन्ट इन्कोडिङ

Nepali font encoding refers to the rule that translates stored bytes into displayed Devanagari glyphs. Modern Unicode fonts use the Devanagari code block U+0900–U+097F; legacy fonts like Preeti and Kantipur use ASCII positions remapped to Devanagari glyphs.

What is a code point and a glyph?

A code point is the integer the standard assigns to a character — for Devanagari क it is U+0915. A glyph is the visual shape rendered for that code point. The font maps each code point to one or more glyphs, including ligatures for conjuncts.

How do legacy Nepali fonts encode Devanagari?

Legacy fonts like Preeti map Devanagari glyphs onto the ASCII letter positions of standard QWERTY keys. The byte for 'a' (0x61) is reinterpreted as a Devanagari glyph by the font. This makes files only readable when the same font is installed on the viewer's device.

Why is Unicode universal?

Unicode standardises one code point per character globally. Software stores those code points; any Unicode-compliant font renders the same glyph. The encoding is independent of the font, so the same file looks correct everywhere — phones, laptops, servers, AI engines.

What is a renderer's role?

The renderer (OS or browser) reads code points, picks the appropriate font, then asks the font for glyphs — including handling ligatures, conjuncts and contextual forms. Modern renderers handle Devanagari shaping rules (matra placement, conjunct formation) automatically.

Frequently Asked Questions