diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-13 21:26:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-13 21:26:09 +0000 |
commit | 67e9b0d16f9c432eed364e03e6ae5b98a450acfd (patch) | |
tree | eb003bc7f8597efd97c4b7fd8a75296f57683a9d /Master/texmf-dist/tex/latex | |
parent | 12e9a2e3cae88ec43047c1a6cbf2d8b122fbcf57 (diff) |
unicodefonttable (13nov22)
git-svn-id: svn://tug.org/texlive/trunk@65009 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/unicodefonttable/unicodefont.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/unicodefonttable/unicodefonttable.sty | 35 |
2 files changed, 30 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/unicodefonttable/unicodefont.tex b/Master/texmf-dist/tex/latex/unicodefonttable/unicodefont.tex index b573ee5b0ed..fa66fd758e1 100644 --- a/Master/texmf-dist/tex/latex/unicodefonttable/unicodefont.tex +++ b/Master/texmf-dist/tex/latex/unicodefonttable/unicodefont.tex @@ -35,8 +35,8 @@ %%%%% \iffalse meta-comment %% File: unicodefonttable.dtx (C) Copyright 2019-2021 Frank Mittelbach -\def\unicodefonttabledate {2021/10/29} -\def\unicodefonttableversion{v1.0f} +\def\unicodefonttabledate {2022/11/12} +\def\unicodefonttableversion{v1.0g} \documentclass{article} diff --git a/Master/texmf-dist/tex/latex/unicodefonttable/unicodefonttable.sty b/Master/texmf-dist/tex/latex/unicodefonttable/unicodefonttable.sty index dc36522b25c..9bc0a79e023 100644 --- a/Master/texmf-dist/tex/latex/unicodefonttable/unicodefonttable.sty +++ b/Master/texmf-dist/tex/latex/unicodefonttable/unicodefonttable.sty @@ -35,8 +35,8 @@ %%%%% \iffalse meta-comment %% File: unicodefonttable.dtx (C) Copyright 2019-2021 Frank Mittelbach -\def\unicodefonttabledate {2021/10/29} -\def\unicodefonttableversion{v1.0f} +\def\unicodefonttabledate {2022/11/12} +\def\unicodefonttableversion{v1.0g} \RequirePackage{xcolor} @@ -64,6 +64,14 @@ \group_begin: \fontspec{#2}[#3] \keys_set:nn{__fmuft}{#1} + \bool_lazy_and:nnT + { \sys_if_engine_luatex_p: } + { \int_compare_p:nNn { "EFFFF } < { "\l__fmuft_range_end_tl } } + { + \directlua{token.put_next(token.create(font.getfont(font.current()).hb~ + and~ 'use_none:n'~ or~ 'use:n'))} + { \msg_warning:nn {unicodefonttable}{noharfbuzz} } + } \tl_if_empty:NTF \l__fmuft_compare_with_tl { \tl_clear:N \l__fmuft_compare_font_tl } { @@ -71,6 +79,7 @@ \cs_set_eq:NN \__fmuft_handle_missing_glyph:n \__fmuft_handle_missing_glyph_compare:n } + \if_mode_vertical: \if_mode_inner: \@twocolumnfalse \fi: \fi: \begin{longtable\bool_if:NF\l__fmuft_display_header_bool{*}} {@{}r@{\quad}*{16}{c}@{}} \__fmuft_setup_header_footer:nn{#2}{#3} @@ -79,7 +88,18 @@ \end{longtable\bool_if:NF\l__fmuft_display_header_bool{*}} \group_end: } - +\msg_new:nnn {unicodefonttable}{noharfbuzz} + { You~ asked~ for~ displaying~ glyphs~ with~ code \iow_newline: + points~ above~ U+EFFFF~ \msg_line_context: ,~ i.e.,~ from~ the~ + 'Supplementary~ Private~ Use~ Area-A'\iow_newline: + without~ specifying~ '[Renderer=Harfbuzz]'~ when~ + loading~ the~ font. + \iow_newline:\iow_newline: + With~ LuaLaTeX,~ this~ Unicode~ region~ is~ used~ + for~ remappings~ (if~ the~ HarfBuzz~ engine~ is~ not~ used).~ + Thus,~ the~ results~ shown~ do~ not~ reflect~ what~ + is~ in~ the~ font! + } \DeclareDocumentCommand \fonttableglyphcount {} { \int_use:N \g__fmuft_glyph_int } \int_new:N \g__fmuft_glyph_int @@ -154,6 +174,8 @@ ,hex-digits .initial:n = head ,hex-digits-font .tl_set:N = \l__fmuft_hex_digits_font_tl ,hex-digits-font .initial:n = \ttfamily \scriptsize + ,hex-digits-row-format .cs_set:Np = \__fmuft_format_row_hex_digits:n #1 + ,hex-digits-row-format .initial:n = U+#1 0 \, - \, #1 F ,color .choice: ,color / none .code:n = \tl_clear:N \l__fmuft_color_tl ,color / unknown .code:n = \tl_set:Nn \l__fmuft_color_tl { \color {#1} } @@ -194,7 +216,7 @@ ,statistics-font .tl_set:N = \l__fmuft_stats_font_tl ,statistics-font .initial:n = \normalfont\small ,statistics-format .cs_set:Np = \__fmuft_format_stats:nn #1#2 - ,statistics-format .initial:n = Total~ number~ of~ glyphs~ in~ #1:~#2 + ,statistics-format .initial:n = Total~ number~ of~ glyphs~ shown~ from~ #1:~#2 } \cs_new:Npn \__fmuft_debug_nl:n #1 {} \keys_define:nn {__fmuft} { @@ -307,7 +329,7 @@ = \__fmuft_format_compare_stats:nnnnnn #1#2#3#4#5#6 ,statistics-compare-format .initial:n = \parbox{\linewidth}{ - Total~ number~ of~ glyphs~ in~ \texttt{#1}:~#2\\ + Total~ number~ of~ glyphs~ shown~ from~ \texttt{#1}:~#2\\ Comparison~ font~ \texttt{#3}~ has~ #5~ missing~ and~ #6~ extra~ glyphs} } @@ -359,7 +381,7 @@ } } \cs_new:Npn \__fmuft_format_row_title:n #1 { - \texttt { \footnotesize \l__fmuft_color_tl U+#1 0 \, - \, #1 F } + \texttt { \footnotesize \l__fmuft_color_tl \__fmuft_format_row_hex_digits:n {#1} } } \tl_new:N \l__fmuft_range_start_tl \tl_new:N \l__fmuft_range_end_tl @@ -432,7 +454,6 @@ \int_gzero:N \g__fmuft_glyph_only_B_int \int_gzero:N \g__fmuft_glyph_also_B_int } - \tl_new:N \g__fmuft_block_title_tl \cs_new:Npn \__fmuft_update_block_title:n #1 { |