Unable to change GRUB font to B Nazanin on Antix Linux

Forum Forums General Software Unable to change GRUB font to B Nazanin on Antix Linux

  • This topic has 7 replies, 3 voices, and was last updated Apr 22-1:19 pm by MasterPythoner.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #140095
    Member
    MasterPythoner

      Hello everyone,

      I’m having trouble changing the font used in the GRUB boot menu on my Antix Linux system. I want to use the B Nazanin font, which is a Persian font, but despite following several guides, I haven’t been able to get it working.

      Here’s what I’ve done so far:

      I downloaded the B-NAZANIN.TTF font file.
      I copied the font file to the /usr/share/fonts/truetype/custom directory and ran fc-cache -f -v
      to rebuild the font cache.
      I edited the GRUB theme file (/boot/grub/themes/mx_linux/theme.txt) and changed the font specification to font = “B Nazanin Regular 14” wherever I wanted the B Nazanin font to be used.
      I created a fonts directory inside the GRUB theme directory (/boot/grub/themes/mx_linux/fonts) and copied the B-NAZANIN.TTF file there.
      After making the changes, I ran sudo update-grub
      to apply the new settings.

      However, even after following these steps, the GRUB boot menu still doesn’t display the B Nazanin font. It continues to use the default font.

      I’m not sure what I’m missing or doing wrong. Could someone please guide me on how to properly set up and use the B Nazanin font in the GRUB environment on Antix Linux?

      Any help or suggestions would be greatly appreciated. Please let me know if you need any additional information from my end.

      Thank you in advance!

      • This topic was modified 1 month ago by MasterPythoner.
      #140112
      Member
      RJP

        I suppose that you need to update initramfs also.

        sudo update-initramfs -u

        #140119
        Member
        MasterPythoner

          Unfortunately, running the sudo update-initramfs -u
          command did not resolve the issue. I’m still unable to change the font used in the GRUB boot menu

          #140121
          Member
          RJP

            You need to run grub-mkfont

            https://manpages.ubuntu.com/manpages/bionic/man1/grub-mkfont.1.html

            Edit: You also need to change (rebuild) grub theme.

            https://forum.endeavouros.com/t/cannot-change-fonts-in-grub-menu/21415

            • This reply was modified 1 month ago by RJP.
            • This reply was modified 1 month ago by RJP.
            #140125
            Member
            MasterPythoner

              the input for
              grub-mkfont
              command is .ttf file, and it will create a pf2 file , which is usable for grub .
              am I right?

              I will try these methods and inform you of the process

              #140134
              Member
              RJP

                It should be like

                sudo grub-mkfont -s 14 -o /boot/grub/B-NAZANIN.pf2 /usr/share/fonts/truetype/font-directory-here/B-NAZANIN.TTF

                https://unix.stackexchange.com/questions/31672/can-grub-font-size-be-customised

                • This reply was modified 1 month ago by RJP.
                • This reply was modified 1 month ago by RJP.
                #140146
                Forum Admin
                anticapitalista

                  /boot/grub/themes/mx_linux/theme.txt)

                  Why mx-linux?

                  Philosophers have interpreted the world in many ways; the point is to change it.

                  antiX with runit - leaner and meaner.

                  #140149
                  Member
                  MasterPythoner

                    Why mx-linux?

                    😂 Sorry about that . I have copied theme directory from mx installation disk .i am modifying the them and i haven’t renamed the directory yet .

                    I am sorry again .

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.