From: Rahguzar <rahguzar@zohomail.eu>
To: help-gnu-emacs@gnu.org
Subject: Text scale mode and additional fonts
Date: Sat, 30 Dec 2023 12:10:31 +0100 [thread overview]
Message-ID: <871qb4dj8v.fsf@zohomail.eu> (raw)
Hi,
I sometimes write documents with a mix of Urdu and English. For Urdu I
have this in my config:
(setq +bidi-arabic-font (font-spec :family "Mehr Nastaliq Web"))
(set-fontset-font t 'arabic +bidi-arabic-font)
The font can be found here
https://mehrtype.com/product/mehr-nastaliq-web/
This works but Urdu text is too small. I can use `text-scale-increase`
but that also makes the English text bigger. So I tried this snippet
instead:
(setq +bidi-arabic-font (font-spec :family "Mehr Nastaliq Web" :size 28))
(set-fontset-font t 'arabic +bidi-arabic-font)
this makes the initial situation better but now the Urdu text is not
affected by the `text-scale-mode` commands.
To overcome this I have added a hook to `text-scale-mode-hook` to
manually adjust the font size. This improves the situation but feels
wrong since the `text-scale-mode` uses face remapping machinery which is
buffer local but the font sizes are global.
Is there a way to set a different size for my Urdu font that makes it
work seamlessly with `text-scale-mode`?
Thanks,
Rahguzar
next reply other threads:[~2023-12-30 11:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-30 11:10 Rahguzar [this message]
2023-12-30 17:47 ` Text scale mode and additional fonts Eli Zaretskii
2023-12-30 18:12 ` [External] : " Drew Adams
2023-12-30 18:54 ` Eli Zaretskii
2023-12-30 21:17 ` Drew Adams
2023-12-31 0:58 ` Po Lu
-- strict thread matches above, loose matches on Subject: below --
2023-12-30 18:50 Rahguzar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qb4dj8v.fsf@zohomail.eu \
--to=rahguzar@zohomail.eu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.