• Re: grub requirements for fonts

    From Darac Marjal@21:1/5 to All on Wed May 1 20:30:01 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------JXRjzxccnG2YmleHgEQkRA3R
    Content-Type: multipart/alternative;
    boundary="------------pBXbzbvRIn89aJ0fk03XfDo2"

    --------------pBXbzbvRIn89aJ0fk03XfDo2
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    DQpPbiAwMS8wNS8yMDI0IDEwOjQ1LCBSaWNoYXJkIHdyb3RlOg0KPiBJJ2QgbGlrZSB0byBp bmNyZWFzZSB0aGUgZm9udCBzaXplIGluIEdydWIgKHYyLjEyLCBhdCBsZWFzdCBJIHRoaW5r IA0KPiB0aGF0J3MgdGhlIGJldHRlciBhbHRlcm5hdGl2ZSB0byBqdXN0IGxvd2VyaW5nIHRo ZSByZXNvbHV0aW9uKSBhbmQgDQo+IG9wdGVkIHRvIGp1c3QgdXNlIGEgY3VzdG9tIGZvbnQg YXMgdGhlcmUgc2VlbXMgdG/CoGJlIGFuIE9URiB2ZXJzaW9uIG9mIA0KPiAiR05VIFVuaWZv bnQiLCB0aG91Z2ggaXQgc2VlbXMgdG8gYmUgamFnZ2VkIGJ5IGRlc2lnbiwgYnV0IEknbSBy dW5uaW5nIA0KPiBpbnRvIGlzc3Vlcy4gSSB0aG91Z2h0IGFib3V0IGp1c3QgdXNpbmcgTm90 byBNb25vIFJlZ3VsYXIgZm9yIGl0LCBhcyANCj4gTm90byBpcyBzdXBwb3NlZCB0byBhbHdh eXMgd29yayBhbmQgYSBtb25vc3BhY2VkIGZvbnQgaXMgcmVjb21tZW5kZWQgDQo+IGZvciBl YXNpZXIgc2V0dGluZyBvZiBsZXR0ZXJzLCBhcyBHcnViIHVzZXMgYml0bWFwIGZvbnRzLiBO b3cgbXkgaXNzdWUgDQo+IGlzIHRoYXQgb24gb25lIGhhbmQsIHRoZSBjb252ZXJzaW9uIHRv IGEgYml0bWFwIGZvbnQgc2VlbXMgdG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SB0aGUg Ii1yIiBvcHRpb24gaWYgDQp5b3UgYXJlLg0KDQo+DQo+IFNvIHdoYXQgZXhhY3RseSBhcmUg dGhlIHJlcXVpcmVtZW50cyBmb3IgZm9udHMgdG8gYmUgdXNlZCBpbiBHcnViIHNvIA0KPiB0 aGF0IHRoZXkgYXJlIGNvbnZlcnRlZCB0byBQRkYyIGZvbnRzIGluIGEgaGlnaGVyIHF1YWxp dHkgYW5kIGRvbid0IA0KPiBzaG93IHRvZnU/DQo+DQo+IEJlc3QNCj4gUmljaGFyZA0K --------------pBXbzbvRIn89aJ0fk03XfDo2
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 01/05/2024 10:45, Richard wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAJdFKOm5FJjov1vFr_NgfZSUvDOpDHN5Q6MnqqnE1qaSq06zoA@mail.gmail.com">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <div dir="ltr">
    <div class="gmail_default"
    style="font-family:arial,helvetica,sans-serif;font-size:small">I'd
    like to increase the font size in Grub (v2.12, at least I
    think that's the better alternative to just lowering the
    resolution) and opted to just use a custom font as there seems
    to be an OTF version of "GNU Unifont", though it seems to be
    jagged by design, but I'm running into issues. I thought about
    just using Noto Mono Regular for it, as Noto is supposed to
    always work and a monospaced font is recommended for easier
    setting of letters, as Grub uses bitmap fonts. Now my issue is
    that on one hand, the conversion to a bitmap font seems to be
    quite bad, the letters look really jagged. On the other hand,
    it seems that despite Noto supposed to being about no tofu, I
    actually get a lot of tofu. Both the up and down arrows in the
    description text at the bottom of grubs boot selector and the
    border around everything is just made up of tofu. And I tried
    converting the font with both grub-mkfont and Grub Customizer,
    same result.<br>
    </div>
    </div>
    </blockquote>
    <p>What command line are you using? I've used the following in the
    past "grub-mkfont -o dejavu_12.pf -a -s 12
    /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"</p>
    <p>You also mention that you're trying Unifont and Noto - are you
    trying to display characters beyond the range of ASCII? I've not
    tried displaying much more than English text. You might need to
    use the "-r" option if you are.<br>
    </p>
    <blockquote type="cite" cite="mid:CAJdFKOm5FJjov1vFr_NgfZSUvDOpDHN5Q6MnqqnE1qaSq06zoA@mail.gmail.com">
    <div dir="ltr">
    <div class="gmail_default"
    style="font-family:arial,helvetica,sans-serif;font-size:small"><br>
    So what exactly are the requirements for fonts to be used in
    Grub so that they are converted to PFF2 fonts in a higher
    quality and don't show tofu?<br>
    </div>
    <div class="gmail_default"
    style="font-family:arial,helvetica,sans-serif;font-size:small"><br>
    </div>
    <div class="gmail_default"
    style="font-family:arial,helvetica,sans-serif;font-size:small">Best</div>
    <div class="gmail_default"
    style="font-family:arial,helvetica,sans-serif;font-size:small">Richard</div>
    </div>
    </blockquote>
    </body>
    </html>

    --------------pBXbzbvRIn89aJ0fk03XfDo2--

    --------------JXRjzxccnG2YmleHgEQkRA3R--

    -----BEGIN PGP SIGNATURE-----

    wsF5BAABCAAjFiEEaJ2XU/5QawksHjUq5unkJUjJEucFAmYyiGgFAwAAAAAACgkQ5unkJUjJEucp MQ/8DJh6c8cqIrkL97e3746N0G3vYBIP25fuc2pqPONQ9G+lAfqq7mijFKVNbiiR5gvUC4vFP18z 8KJhAllOppVH9aC1GrcklCdAu9xflbg7hMVRU7r4nIUuhg4KJzwzfuTJsD0+a6wia0Qa8unpZoI0 uCA9ucyMFqnTIhlWUuyRybt2ZbgMlhBdr7P/5f+SqCYe08X12h+onVY4UKwt21uts4hMCccFpgMO zetwCb901ikUYQVKYqGVL2ExpEPsBTt9+TxQeH11JYwWfUEayHPeaT23jBNPwD6jRWbctzhhk+34 naxsuqB7Nu7Nlo3PWZGeUJ9zhrxrblojFscxVFDmwE/u+Xdz6Tttqbz5MnuTTvuO6LUxERpkt3ZU BldoGLftTqr1OiKKRtBClWr5FczbuVLRRtE7qfNMolFFktBNzLWuEtxWVT0OEHa45be5VlfCPp4d EEmtPPRYExbKP2sEsSiv5VfmkDppxZyQ7bcZTLnMYWwnJFln3nLhKLCkdZiGVhHjQf4k15C5tRAZ Xt2kntPLjFh+V0saYuEfVeqQYDsYZ9eJ3hSW8PKfH1XYh3AIFZ2misvc0SZ6LFl7B87JAPF6IAtR CypSKVJC2wpfLJk0SnI59e8deBTuwGcPQGswnxOr2ZXflAygNszMIj4AgAyy6RTPcuupg+B+Gu1q jTY=
    =H3s8
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)