Skip to content

Instantly share code, notes, and snippets.

@rarbor
Last active February 7, 2026 23:33
Show Gist options
  • Select an option

  • Save rarbor/35aba35eb598f5f53d679340a859c567 to your computer and use it in GitHub Desktop.

Select an option

Save rarbor/35aba35eb598f5f53d679340a859c567 to your computer and use it in GitHub Desktop.
setting up nasin-nanpa in linux and librewolf/firefox

sitelen pona in linux and librewolf/firefox

instructions

  1. download nasin-nanpa from here. not the Helvetica or USCUR version
  2. edit /etc/fonts/local.conf (to add the font system-wide) or ~/.config/fontconfig/font.conf (to add for your user only) to specify nasin nanpa (note the lack of hyphen) as a fallback. attached is an example fontconfig
  3. run the following to reload the font cache:
$ fc-cache -f -v
  1. create the file ~/.mozilla/firefox/[your profile]/chrome/userChrome.css. for librewolf users such as myself, the location is ~/.librewolf/[your profile]/chrome/userChrome.css. you may need to create the chrome folder. attached is an example userChrome.css to enable nasin-nanpa in the firefox ui
  2. navigate to about:config and modify the values listed in about.config below
  3. restart librewolf/firefox
  4. you should be able to see this text 󱤴󱥅󱤉󱥾󱤄 and copy/paste it into your address bar. if not, you're on your own. please leave a comment if you figure it out so i can update accordingly
  5. enjoy speaking toki pona on the internet! 󱥞󱥵󱤀

troubleshooting

you may need to enable the configuration files

  • for global settings:
$ ln -s /usr/share/fontconfig/conf.avail/51-local.conf /etc/fonts/conf.d/
  • for local settings:
$ mkdir ~/.config/fontconfig/conf.d
$ ln -s /usr/share/fontconfig/conf.avail/51-local.conf ~/.config/fontconfig/conf.d

then, reload the cache again with:

`$ fc-cache -f -v
font.default.x-unicode serif, nasin-nanpa
font.default.x-western serif, nasin-nanpa
font.name-list.cursive.x-unicode cursive, nasin-nanpa
font.name-list.cursive.x-western cursive, nasin-nanpa
font.name-list.monospace.x-unicode monospace, nasin-nanpa
font.name-list.monospace.x-western monospace, nasin-nanpa
font.name-list.sans-serif.x-unicode sans-serif, nasin-nanpa
font.name-list.sans-serif.x-western sans-serif, nasin-nanpa
font.name-list.serif.x-unicode serif, nasin-nanpa
font.name-list.serif.x-western serif, nasin-nanpa
gfx.font_rendering.fontconfig.max_generic_substitutions 127
toolkit.legacyUserProfileCustomizations.stylesheets true
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!-- Fallback fonts preference order -->
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Open Sans</family>
<family>Droid Sans</family>
<family>Roboto</family>
<family>nasin nanpa</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Droid Serif</family>
<family>Roboto Slab</family>
<family>nasin nanpa</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Sans Mono</family>
<family>Inconsolata</family>
<family>Droid Sans Mono</family>
<family>Roboto Mono</family>
<family>nasin nanpa</family>
</prefer>
</alias>
</fontconfig>
* {
font-family: sans-serif, nasin-nanpa;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment