khaledhosny / harf

A HarfBuzz-based font loader and shaper for HarfTeX
GNU General Public License v2.0
10 stars 1 forks source link

url package gives broken output #33

Closed khaledhosny closed 5 years ago

khaledhosny commented 5 years ago

This shows only h. in the PDF:

\documentclass{article}
\usepackage{url}
\usepackage{harfload}
\usepackage{fontspec}
\begin{document}
\url{https://example.com}
\end{document}
khaledhosny commented 5 years ago

Even shorter plain TeX example:

\input harfload.sty
\font\test="[lmmono10-regular.otf]"
\test $\fam0 \textfont0\font http$
\bye

Log file:

This is HarfTeX, Version 0.1.1 (TeX Live 2019)  (format=luatex 2019.4.15)  27 APR 2019 15:16
 restricted system commands enabled.
**test-url.tex
(./test-url.tex (./harfload.sty
(/texlive/2018/texmf-dist/tex/luatex/luatexbase/luatexbase.s
ty
Package: luatexbase 2015/10/04 v1.3 luatexbase interface to LuaTeX 

(/texlive/2018/texmf-dist/tex/luatex/ctablestack/ctablestack
.sty
Package: ctablestack 2015/10/01 v1.0 Catcode table stable support
 (/texlive/2018/texmf-dist/tex/latex/base/ltluatex.tex
File: ltluatex.tex 2018/10/21 v1.1i LuaTeX support for plain TeX (core) 
\e@alloc@attribute@count=\count277
\e@alloc@ccodetable@count=\count278
\e@alloc@luafunction@count=\count279
\e@alloc@whatsit@count=\count280
\e@alloc@bytecode@count=\count281
\e@alloc@luachunk@count=\count282
\catcodetable@initex=\catcodetable1
\catcodetable@string=\catcodetable2
\catcodetable@latex=\catcodetable3
\catcodetable@atletter=\catcodetable4
)
\@catcodetablestackcnt=\count283
)
\CatcodeTableOther=\catcodetable5
\CatcodeTableExpl=\catcodetable6
)
(/texlive/2018/texmf-dist/tex/luatex/luaotfload/luaotfload.s
ty
Lua module: luaotfload-main 2019-02-14 2.96 luaotfload entry point
Lua module: luaotfload-init 2019-02-14 2.96 luaotfload submodule / initializatio
n
Lua module: lualibs 2019-02-14 2.64 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2019-02-14 2.64 ConTeXt Lua libraries -- extended c
ollection.
Lua module: luaotfload-log 2019-02-14 2.96 luaotfload submodule / logging
Lua module: luaotfload-parsers 2019-02-14 2.96 luaotfload submodule / filelist
Lua module: luaotfload-configuration 2019-02-14 2.96 luaotfload submodule / conf
ig file reader
luaotfload | conf : Root cache directory is /texlive/2018/tex
mf-var/luatex-cache/generic/names.
luaotfload | init : Loading fontloader “fontloader-2019-02-14.lua” from kpse
-resolved path “/texlive/2018/texmf-dist/tex/luatex/luaotfl
oad/fontloader-2019-02-14.lua”.
Lua-only attribute luaotfload@state = 1
Lua-only attribute luaotfload@noligature = 2
Lua-only attribute luaotfload@syllabe = 3
luaotfload | init : Context OpenType loader version “3.107”
Inserting `luaotfload.node_processor' at position 1 in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' at position 1 in `hpack_filter'.
Lua module: luaotfload-loaders 2019-02-14 2.96 luaotfload submodule / callback h
andling
Inserting `luaotfload.define_font' at position 1 in `define_font'.
Lua module: luaotfload-database 2019-02-14 2.96 luaotfload submodule / database
Lua module: luaotfload-colors 2019-02-14 2.96 luaotfload submodule / color
Lua-only attribute luaotfload_color_attribute = 4
Lua module: luaotfload-resolvers 2019-02-14 2.96 luaotfload submodule / resolver
s
luaotfload | conf : Root cache directory is /texlive/2018/tex
mf-var/luatex-cache/generic/names.
Lua module: luaotfload-features 2019-02-14 2.96 luaotfload submodule / features
Lua module: luaotfload-letterspace 2019-02-14 2.96 luaotfload submodule / color
Lua module: luaotfload-auxiliary 2019-02-14 2.96 luaotfload submodule / auxiliar
y functions
Inserting `luaotfload.aux.set_sscale_dimens' at position 1 in `luaotfload.patch_
font'.
Inserting `luaotfload.aux.patch_cambria_domh' at position 2 in `luaotfload.patch
_font'.
Inserting `luaotfload.aux.fixup_fontdata' at position 1 in `luaotfload.patch_fon
t_unsafe'.
Inserting `luaotfload.aux.set_capheight' at position 3 in `luaotfload.patch_font
'.
Inserting `luaotfload.rewrite_fontname' at position 4 in `luaotfload.patch_font'
.
luaotfload | main : initialization completed in 0.062 seconds
)
Removing  `luaotfload.node_processor' from `pre_linebreak_filter'.
Inserting `Harf pre_linebreak_filter callback' at position 1 in `pre_linebreak_f
ilter'.
Inserting `luaotfload.node_processor' at position 2 in `pre_linebreak_filter'.
Inserting `Harf get_glyph_string callback' at position 1 in `get_glyph_string'.
Inserting `Harf wrapup_run callback' at position 1 in `wrapup_run'.
Inserting `Harf get_char_tounicode callback' at position 1 in `get_char_tounicod
e'.
Inserting `Harf pre_output_filter callback' at position 1 in `pre_output_filter'
.
Removing  `luaotfload.node_processor' from `hpack_filter'.
Inserting `Harf hpack_filter callback' at position 1 in `hpack_filter'.
Inserting `luaotfload.node_processor' at position 2 in `hpack_filter'.)
luaotfload | db : Font names database loaded from /texlive/20
18/texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz
Missing character: There is no t (U+0074) in font [lmmono10-regular.otf]!
Missing character: There is no t (U+0074) in font [lmmono10-regular.otf]!
Missing character: There is no t (U+0074) in font [lmmono10-regular.otf]!
Missing character: There is no t (U+0074) in font [lmmono10-regular.otf]!
Missing character: There is no p (U+0070) in font [lmmono10-regular.otf]!
[1{/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map
}])

Here is how much of HarfTeX's memory you used:
 116 strings out of 496306
 100000,35830 words of node,token memory allocated
 241 words of node memory still in use:
   2 hlist, 1 rule, 3 kern, 2 glyph, 1 attribute, 23 glue_spec, 1 attribute_list
 nodes
   avail lists: 2:16,3:4,4:1,5:5,6:2,7:14,8:4,9:8
 2239 multiletter control sequences out of 65536+600000
 51 fonts using 2264117 bytes
 62i,4n,30p,259b,34s stack positions out of 5000i,500n,10000p,200000b,100000s
</texlive/2018/texmf-dist/fonts/opentype/public/lm/lmmono10-r
egular.otf></texlive/2018/texmf-dist/fonts/type1/public/amsfo
nts/cm/cmr10.pfb>
Output written on test-url.pdf (1 page, 9367 bytes).

PDF statistics: 19 PDF objects out of 1000 (max. 8388607)
 11 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 100000000)