[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Add regression test for loading TTF fonts from map file (54cff24)

Jonas Witschel diabonas at archlinux.org
Thu Apr 9 16:35:15 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/54cff2439099b0376aef660a9562f9ceff011825

>---------------------------------------------------------------

commit 54cff2439099b0376aef660a9562f9ceff011825
Author: Jonas Witschel <diabonas at archlinux.org>
Date:   Thu Apr 9 14:38:22 2020 +0200

    Add regression test for loading TTF fonts from map file
    
    Add the example from the issue that the previous commit "harf-define:
    look up absolute file path in find_*_file callbacks" fixes as a test
    case.


>---------------------------------------------------------------

54cff2439099b0376aef660a9562f9ceff011825
 .../{iwona-PR42.lvt => issue142-ttf-from-map.pvt}  |  7 +-
 testfiles/issue142-ttf-from-map.tpf                | 80 ++++++++++++++++++++++
 texlive.sh                                         |  4 +-
 3 files changed, 85 insertions(+), 6 deletions(-)

diff --git a/testfiles/iwona-PR42.lvt b/testfiles/issue142-ttf-from-map.pvt
similarity index 52%
copy from testfiles/iwona-PR42.lvt
copy to testfiles/issue142-ttf-from-map.pvt
index e576912..782650c 100644
--- a/testfiles/iwona-PR42.lvt
+++ b/testfiles/issue142-ttf-from-map.pvt
@@ -1,8 +1,7 @@
 \input{regression-test}
 \documentclass{article}
-\usepackage{fontspec}
-\setmainfont{Iwona Medium}
+\usepackage[T1]{fontenc}
 \begin{document}
-\START\showoutput
-abc
+\font\cuprum=cprmn8t
+\cuprum test
 \end{document}
diff --git a/testfiles/issue142-ttf-from-map.tpf b/testfiles/issue142-ttf-from-map.tpf
new file mode 100644
index 0000000..1a21f43
--- /dev/null
+++ b/testfiles/issue142-ttf-from-map.tpf
@@ -0,0 +1,80 @@
+%PDF-1.5
+%ÌÕÁÔÅØÐÄÆ
+3 0 obj
+<< /Length 115 >>        
+stream
+BT
+/F27 9.96264 Tf
+1 0 0 1 148.712 707.125 Tm [(t)10(est)]TJ
+/F26 9.96264 Tf
+1 0 0 1 303.133 139.255 Tm [(1)]TJ
+ET
+endstream
+endobj
+2 0 obj
+<< /Type /Page /Contents 3 0 R /Resources 1 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 6 0 R >>
+endobj
+1 0 obj
+<< /Font << /F27 4 0 R /F26 5 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+8 0 obj
+[500 ]
+endobj
+9 0 obj
+[440 0 0 0 0 0 0 0 0 0 0 0 0 0 395 345 ]
+endobj
+11 0 obj
+<< /Length1 4400 /Length 4400 >>       
+[BINARY STREAM]
+endobj
+10 0 obj
+<< /Type /FontDescriptor /FontName /CGNUEO+Cuprum-Regular /Flags 4 /FontBBox [ -70 -220 960 890 ] /Ascent 890 /CapHeight 690 /Descent -260 /ItalicAngle 0 /StemV 57 /XHeight 500 /FontFile2 11 0 R >>
+endobj
+4 0 obj
+<< /Type /Font /Subtype /TrueType /BaseFont /CGNUEO+Cuprum-Regular /FontDescriptor 10 0 R /FirstChar 101 /LastChar 116 /Widths 9 0 R >>
+endobj
+13 0 obj
+<< /Length1 1643 /Length2 14632 /Length3 0 /Length 16275 >>      
+[BINARY STREAM]
+endobj
+12 0 obj
+<< /Type /FontDescriptor /FontName /JVWJQI+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 689 /CapHeight 689 /Descent -194 /ItalicAngle 0 /StemV 69 /XHeight 431 /CharSet( /one) /FontFile 13 0 R >>
+endobj
+7 0 obj
+<< /Type /Encoding /Differences [ 49 /one ] >>
+endobj
+5 0 obj
+<< /Type /Font /Subtype /Type1 /BaseFont /JVWJQI+LMRoman10-Regular /FontDescriptor 12 0 R /FirstChar 49 /LastChar 49 /Widths 8 0 R /Encoding 7 0 R >>
+endobj
+6 0 obj
+<< /Type /Pages  /Count 1 /Kids [ 2 0 R ] >>
+endobj
+14 0 obj
+<< /Type /Catalog /Pages 6 0 R >>
+endobj
+15 0 obj
+<< /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
+endobj
+xref
+0 16
+0000000000 65535 f 
+0000000307 00000 n 
+0000000194 00000 n 
+0000000020 00000 n 
+0000005152 00000 n 
+0000021975 00000 n 
+0000022140 00000 n 
+0000021913 00000 n 
+0000000386 00000 n 
+0000000408 00000 n 
+0000004938 00000 n 
+0000000464 00000 n 
+0000021678 00000 n 
+0000005303 00000 n 
+0000022200 00000 n 
+0000022250 00000 n 
+trailer
+<< /Size 16 /Root 14 0 R /Info 15 0 R >>
+startxref
+22322
+%%EOF
diff --git a/texlive.sh b/texlive.sh
index 8ba344b..aefdfec 100644
--- a/texlive.sh
+++ b/texlive.sh
@@ -44,14 +44,14 @@ echo graphics xcolor graphics-def pgf
 
 # fonts support - perhaps take here luaotfload out of the list ...
 # or is it installed as dependency anyway?
-echo fontspec microtype unicode-math luaotfload
+echo fontspec microtype unicode-math luaotfload ttfutils
 
 # fonts
 echo sourcecodepro Asana-Math  ebgaramond  tex-gyre  amsfonts gnu-freefont
 echo opensans fira tex-gyre-math junicode lm  lm-math amiri ipaex xits
 echo libertine coelacanth fontawesome stix2-otf dejavu
 echo luatexko unfonts-core cjk-ko iwona libertinus-fonts fandol
-echo cm-unicode noto
+echo cm-unicode noto cuprum
 
 # languages
 echo luatexja arabluatex babel babel-english





More information about the latex3-commits mailing list.