From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: How to display these characters
Date: Fri, 5 Aug 2022 20:07:13 +0200 [thread overview]
Message-ID: <5d0b7cbb-44da-9ab5-2178-62f6c59cfb30@gmail.com> (raw)
In-Reply-To: <bf33ee74-b04c-647f-3930-c25b1ced477a@mailbox.org>
juh+ntg-context--- via ntg-context schrieb am 05.08.2022 um 19:04:
> Dear all,
>
> I have this:
>
>
> \starttext
>
> \starttyping
> foo
> └── bar
> ├── baz
> │ └── index.html
> └── index.html
>
> \stoptyping
>
> \stoptext
>
> The source code is generated with the linux command "tree".
>
> The special characters which indicate the folder depth are not displayed.
>
> I guess that I could define a fallbackfont. Do anyone know the unicode
> range that should be covered and the font that has these characters?
You need box drawing [1] characters.
When you need fonts with a wide range of character the Noto [2] family
is a good choice.
%%%% begin example
\definefontfamily [noto] [rm] [Noto Serif]
\definefontfamily [noto] [ss] [Noto Sans]
\definefontfamily [noto] [tt] [Noto Sans Mono]
\definetypeface [noto] [mm] [math] [pagella] [default]
\setupbodyfont [noto]
\starttext
\starttyping
foo
└── bar
├── baz
│ └── index.html
└── index.html
\stoptyping
\stoptext
%%%% end example
[1] https://unicode.org/charts/PDF/U2500.pdf
[2] https://github.com/notofonts/noto-fonts
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2022-08-05 18:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-05 17:04 juh+ntg-context--- via ntg-context
2022-08-05 18:07 ` Wolfgang Schuster via ntg-context [this message]
2022-08-05 18:13 ` Henning Hraban Ramm via ntg-context
2022-08-08 6:01 ` Alan Braslau via ntg-context
2022-08-09 14:51 ` Henning Hraban Ramm via ntg-context
2022-08-09 16:57 ` Wolfgang Schuster via ntg-context
2022-08-09 17:56 ` Henning Hraban Ramm via ntg-context
2022-08-10 21:42 ` Aditya Mahajan via ntg-context
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=5d0b7cbb-44da-9ab5-2178-62f6c59cfb30@gmail.com \
--to=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).