Hello, I was trying to install the urbanist fonts (https://github.com/coreyhu/Urbanist) but I couldn't get it to load and save the fonts in the system folder and in the ConTeXt folder without success, I could only get it to load when saving them in the current working directory but that is annoying, help me by telling me the correct way to install it... I leave you my code so you can review it and give me advice to improve it \starttypescript [sans] [urbanist] \definefontsynonym [Urbanist][file:urbanist-regular.otf*default][features=default] \definefontsynonym [UrbanistItalic][name:urbanist-italic.otf*default][features=default] \definefontsynonym [UrbanistBold][name:urbanist-bold.otf*default][features=default] \definefontsynonym [UrbanistBoldItalic][name:urbanist-bolditalic.otf*default][features=default] \stoptypescript \starttypescript [sans] [urbanist] \definefontsynonym [Sans][Urbanist][features=default] \definefontsynonym [SansItalic][UrbanistItalic][features=default] \definefontsynonym [SansBold][UrbanistBold][features=default] \definefontsynonym [SansBoldItalic][UrbanistBoldItalic][features=default] \stoptypescript \definetypeface[urbanist][ss][sans][urbanist][default] \setupbodyfont[urbanist,30pt] \starttext \dorecurse{100}{\bf \input knuth \crlf} \stoptext
Am 22.07.24 um 10:33 schrieb alan.caruanambom@gmail.com:
Hello, I was trying to install the urbanist fonts (https://github.com/coreyhu/Urbanist) but I couldn't get it to load and save the fonts in the system folder and in the ConTeXt folder without success, I could only get it to load when saving them in the current working directory but that is annoying, help me by telling me the correct way to install it... I leave you my code so you can review it and give me advice to improve it
Did you update the font cache? mtxrun --script font --reload Hraban
Yes, I do, This is the log file system > system > ConTeXt ver: 2024.06.21 23:45 LMTX fmt: 2024.7.22 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name 'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source > level 1, order 1, name 'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname '.\\sample', input '.\\sample.tex', result '.\\sample' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name 'sample.tex' fonts > bodyfont '15pt' is defined (can better be done global (maybe use \usebodyfont) fonts > preloading modern (math) fonts > 'fallback modern mm 15pt' is loaded fonts > preloading modern (mono) fonts > 'fallback modern tt 15pt' is loaded fonts > defining > forced type 'otf' of 'urbanist-regular' not found fonts > defining > unable to define 'urbanist-regular.otf' as 'urbanist-15pt-ss-tf-0--0' open source > level 2, order 3, name 'knuth.tex' close source > level 2, order 3, name 'knuth.tex' open source > level 2, order 4, name 'knuth.tex' close source > level 2, order 4, name 'knuth.tex' open source > level 2, order 5, name 'knuth.tex' close source > level 2, order 5, name 'knuth.tex' open source > level 2, order 6, name 'knuth.tex' pages > flushing realpage 1, userpage 1, subpage 1 close source > level 2, order 6, name 'knuth.tex' open source > level 2, order 7, name 'knuth.tex' close source > level 2, order 7, name 'knuth.tex' open source > level 2, order 8, name 'knuth.tex' close source > level 2, order 8, name 'knuth.tex' open source > level 2, order 9, name 'knuth.tex' pages > flushing realpage 2, userpage 2, subpage 2 close source > level 2, order 9, name 'knuth.tex' open source > level 2, order 10, name 'knuth.tex' close source > level 2, order 10, name 'knuth.tex' open source > level 2, order 11, name 'knuth.tex' pages > flushing realpage 3, userpage 3, subpage 3 close source > level 2, order 11, name 'knuth.tex' open source > level 2, order 12, name 'knuth.tex' close source > level 2, order 12, name 'knuth.tex' pages > flushing realpage 4, userpage 4, subpage 4 fonts > defining > font with asked name 'urbanist-italic.otf' is not found using lookup 'name' fonts > defining > unable to define 'urbanist-italic.otf' as 'urbanist-15pt-ss-it-0--0' open source > level 2, order 13, name 'knuth.tex' close source > level 2, order 13, name 'knuth.tex' open source > level 2, order 14, name 'knuth.tex' close source > level 2, order 14, name 'knuth.tex' open source > level 2, order 15, name 'knuth.tex' close source > level 2, order 15, name 'knuth.tex' open source > level 2, order 16, name 'knuth.tex' pages > flushing realpage 5, userpage 5, subpage 5 close source > level 2, order 16, name 'knuth.tex' open source > level 2, order 17, name 'knuth.tex' close source > level 2, order 17, name 'knuth.tex' open source > level 2, order 18, name 'knuth.tex' close source > level 2, order 18, name 'knuth.tex' open source > level 2, order 19, name 'knuth.tex' pages > flushing realpage 6, userpage 6, subpage 6 close source > level 2, order 19, name 'knuth.tex' open source > level 2, order 20, name 'knuth.tex' close source > level 2, order 20, name 'knuth.tex' open source > level 2, order 21, name 'knuth.tex' pages > flushing realpage 7, userpage 7, subpage 7 close source > level 2, order 21, name 'knuth.tex' open source > level 2, order 22, name 'knuth.tex' close source > level 2, order 22, name 'knuth.tex' pages > flushing realpage 8, userpage 8, subpage 8 fonts > defining > font with asked name 'urbanist-bold.otf' is not found using lookup 'name' fonts > defining > unable to define 'urbanist-bold.otf' as 'urbanist-15pt-ss-bf-0--0' open source > level 2, order 23, name 'knuth.tex' close source > level 2, order 23, name 'knuth.tex' open source > level 2, order 24, name 'knuth.tex' close source > level 2, order 24, name 'knuth.tex' open source > level 2, order 25, name 'knuth.tex' close source > level 2, order 25, name 'knuth.tex' open source > level 2, order 26, name 'knuth.tex' pages > flushing realpage 9, userpage 9, subpage 9 close source > level 2, order 26, name 'knuth.tex' open source > level 2, order 27, name 'knuth.tex' close source > level 2, order 27, name 'knuth.tex' open source > level 2, order 28, name 'knuth.tex' close source > level 2, order 28, name 'knuth.tex' open source > level 2, order 29, name 'knuth.tex' pages > flushing realpage 10, userpage 10, subpage 10 close source > level 2, order 29, name 'knuth.tex' open source > level 2, order 30, name 'knuth.tex' close source > level 2, order 30, name 'knuth.tex' open source > level 2, order 31, name 'knuth.tex' pages > flushing realpage 11, userpage 11, subpage 11 close source > level 2, order 31, name 'knuth.tex' open source > level 2, order 32, name 'knuth.tex' close source > level 2, order 32, name 'knuth.tex' pages > flushing realpage 12, userpage 12, subpage 12 fonts > defining > font with asked name 'urbanist-bolditalic.otf' is not found using lookup 'name' fonts > defining > unable to define 'urbanist-bolditalic.otf' as 'urbanist-15pt-ss-bi-0--0' open source > level 2, order 33, name 'knuth.tex' close source > level 2, order 33, name 'knuth.tex' open source > level 2, order 34, name 'knuth.tex' close source > level 2, order 34, name 'knuth.tex' open source > level 2, order 35, name 'knuth.tex' close source > level 2, order 35, name 'knuth.tex' open source > level 2, order 36, name 'knuth.tex' pages > flushing realpage 13, userpage 13, subpage 13 close source > level 2, order 36, name 'knuth.tex' open source > level 2, order 37, name 'knuth.tex' close source > level 2, order 37, name 'knuth.tex' open source > level 2, order 38, name 'knuth.tex' close source > level 2, order 38, name 'knuth.tex' open source > level 2, order 39, name 'knuth.tex' pages > flushing realpage 14, userpage 14, subpage 14 close source > level 2, order 39, name 'knuth.tex' open source > level 2, order 40, name 'knuth.tex' close source > level 2, order 40, name 'knuth.tex' open source > level 2, order 41, name 'knuth.tex' pages > flushing realpage 15, userpage 15, subpage 15 close source > level 2, order 41, name 'knuth.tex' open source > level 2, order 42, name 'knuth.tex' close source > level 2, order 42, name 'knuth.tex' pages > flushing realpage 16, userpage 16, subpage 16 close source > level 1, order 42, name 'sample.tex' backend > xmp > using file 'C:/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' system > start used files system > text: sample system > stop used files system > start used files system > 1: filename=publ-imp-default.lua filetype=lua foundname=C:/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=C:/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database system > 2: filename=cont-new.mkxl filetype=tex foundname=C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database system > 3: filename=lang-exc.lua filetype=lua foundname=C:/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=C:/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database system > 4: filename=lang-us.lua filetype=lua foundname=C:/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=C:/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database system > 5: filename=sample.tex format=tex foundname=sample.tex fullname=C:/Users/alan/Desktop/sample.tex usedmethod=direct system > 6: filename=lm.lfg filetype=tex foundname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database system > 7: filename=latinmodern-math.otf filetype=otf format=otf foundname=C:/context/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf fullname=C:/context/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf usedmethod=database system > 8: filename=modern-math.lfg filetype=tex foundname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg fullname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg usedmethod=database system > 9: filename=common-math.lfg filetype=tex foundname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg fullname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg usedmethod=database system > 10: filename=LatinModernMath-Companion.otf filetype=otf format=otf foundname=C:/context/tex/texmf/fonts/data/cms/companion/LatinModernMath-Companion.otf fullname=C:/context/tex/texmf/fonts/data/cms/companion/LatinModernMath-Companion.otf usedmethod=database system > 11: filename=knuth.tex filetype=tex format=tex foundname=C:/context/tex/texmf-context/tex/context/sample/common/knuth.tex fullname=C:/context/tex/texmf-context/tex/context/sample/common/knuth.tex usedmethod=database system > 12: filename=lpdf-pdx.xml filetype=tex foundname=C:/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=C:/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database system > stop used files system > start commandline options system > autopdf="true" system > currentrun="1" system > fulljobname=".\\sample.tex" system > input=".\\sample.tex" system > kindofrun="1" system > maxnofruns="9" system > texmfbinpath="C:/context/tex/texmf-win64/bin" system > stop commandline options system > start commandline files system > 1: .\\sample.tex system > stop commandline files modules > start used modules modules > stop used modules system > system > status after finishing run system > system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > string pool hash lookup node token buffer input file nest parameter save font language mark insert system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > max 2097152 100000000 2097152 2097152 100000000 10000000 100000000 100000 2000 10000 100000 500000 100000 10000 10000 500 system > min 150000 10000000 150000 150000 2000000 2000000 1000000 10000 500 1000 20000 100000 250 250 50 10 system > set 500000 10000000 250000 250000 50000000 10000000 10000000 100000 2000 10000 100000 500000 100000 250 250 250 system > stp 100000 1000000 100000 100000 500000 500000 1000000 10000 250 1000 10000 10000 250 250 50 25 system > system > mem 150000 989768 150000 2000000 2000000 1000000 10000 500 1000 20000 10000 7298112 96 1200 320 system > all 2400000 989768 2400000 18000000 16000000 1000000 320000 16000 88000 80000 160000 7298112 96 28800 10240 system > system > ini 2147353 955035 0 50184 0 556506 0 system > ptr 51598 10725 51581 587270 0 0 0 0 0 0 22 0 0 9 system > top 51599 807106 131074 39846 581634 219 30 5 12 35 183 250 250 50 10 system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > system > current input type : initial system > system > approximate memory : 52203104 (49 MB) system > system > expansion depth : min: 10000, max: 1000000, set: 10000, top: 6 system > system > luabytecode registers : 1020 system > luabytecode bytes : 16336 (0 MB) system > luastate bytes now : 60496062 (57 MB) system > luastate bytes max : 60496062 (57 MB) system > system > file callbacks : 758 system > saved callbacks : 4035 system > direct callbacks : 2 system > function callbacks : 803 system > value callbacks : 295 system > message callbacks : 0 system > bytecode callbacks : 625 system > system > mp instances : 0 system > mp estimated memory : 0 (0 MB) system > mp file callbacks : 0 system > mp text callbacks : 0 system > mp script callbacks : 0 system > mp log callbacks : 0 system > system > total callbacks : 6518 system > mp total callbacks : 0 system > backend callbacks : 0 system > system > linebreak par context : normal 132 128 ( 97%) 0 ( 0%) 0 ( 0%) system > linebreak par context : vbox 48 0 ( 0%) 0 ( 0%) 0 ( 0%) system > system > hyphenation state : checked 220 system > hyphenation state : hyphenated 1320 system > hyphenation state : lists 220 system > hyphenation state : nothing 136 system > hyphenation state : words 2040 system > mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.004 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: <none> mkiv lua stats > stored bytecode data: 520 modules (0.182 sec), 105 tables (0.012 sec), 625 chunks (0.194 sec) mkiv lua stats > traced context: maxstack: 1784, freed: 0, unreachable: 1784 mkiv lua stats > cleaned up reserved nodes: 75 nodes, 8 lists of 437 mkiv lua stats > node memory usage: 9 attribute, 2 glue, 133 gluespec, 1 kern, 655 mathspec, 3 penalty, 1 specification, 2 temp mkiv lua stats > node list callback tasks: 16 unique task lists, 11 instances (re)created, 1898 calls mkiv lua stats > driver time: 0.057 seconds mkiv lua stats > used backend: pdf mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: file: 758, saved: 4035, direct: 2, function: 803, value: 295, message: 0, bytecode: 625, late 0, total: 6518 (407 per page) mkiv lua stats > randomizer: resumed with value 0.95581354328473 mkiv lua stats > loaded patterns: en::1, load time: 0.000 mkiv lua stats > loaded fonts: 2 files: latinmodernmath-companion.otf, latinmodern-math.otf mkiv lua stats > font engine: otf 3.144, afm 1.541, tfm 1.000, 12 instances, 8 shared in backend, 4 common vectors, 4 common hashes, load time 0.226 seconds mkiv lua stats > body font sizes: defined: 10pt 11pt 12pt 14.4pt 17.3pt 20.7pt 4pt 5pt 6pt 7pt 8pt 9pt, undefined: 15pt mkiv lua stats > math tweaking time: 0.083 seconds, 18 math goodie tables mkiv lua stats > font embedding time: 0.003 seconds, 1 fonts mkiv lua stats > result saved in file: .\\sample.pdf, compresslevel 1, objectcompresslevel 3, 20 streams, 0 uncompressed, 19 compressed, 1 not compressed, threshold 40 mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries mkiv lua stats > used platform: win64, type: windows, binary subtree: texmf-win64 mkiv lua stats > used engine: luametatex version: 2.11.03, functionality level: 2024013, format id: 703, compiler: gcc mkiv lua stats > tex properties: 807106 hash slots used of 2097152, 51581 control sequences, approximate memory usage: 49 MB mkiv lua stats > lua properties: engine: lua 5.5, used memory: 60 MB, ctx: 57 MB, max: 57 MB, symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.663 seconds, 16 processed pages, 16 shipped pages, 24.122 pages/second
You can try this : |||||mtxrun --script cache --erase && mtxrun --generate||||| Le 22/07/2024 à 11:39, alan.caruanambom@gmail.com a écrit :
Yes, I do, This is the log file
system > system > ConTeXt ver: 2024.06.21 23:45 LMTX fmt: 2024.7.22 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name 'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source > level 1, order 1, name 'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname '.\\sample', input '.\\sample.tex', result '.\\sample' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name 'sample.tex' fonts > bodyfont '15pt' is defined (can better be done global (maybe use \usebodyfont) fonts > preloading modern (math) fonts > 'fallback modern mm 15pt' is loaded fonts > preloading modern (mono) fonts > 'fallback modern tt 15pt' is loaded fonts > defining > forced type 'otf' of 'urbanist-regular' not found fonts > defining > unable to define 'urbanist-regular.otf' as 'urbanist-15pt-ss-tf-0--0' open source > level 2, order 3, name 'knuth.tex' close source > level 2, order 3, name 'knuth.tex' open source > level 2, order 4, name 'knuth.tex' close source > level 2, order 4, name 'knuth.tex' open source > level 2, order 5, name 'knuth.tex' close source > level 2, order 5, name 'knuth.tex' open source > level 2, order 6, name 'knuth.tex' pages > flushing realpage 1, userpage 1, subpage 1 close source > level 2, order 6, name 'knuth.tex' open source > level 2, order 7, name 'knuth.tex' close source > level 2, order 7, name 'knuth.tex' open source > level 2, order 8, name 'knuth.tex' close source > level 2, order 8, name 'knuth.tex' open source > level 2, order 9, name 'knuth.tex' pages > flushing realpage 2, userpage 2, subpage 2 close source > level 2, order 9, name 'knuth.tex' open source > level 2, order 10, name 'knuth.tex' close source > level 2, order 10, name 'knuth.tex' open source > level 2, order 11, name 'knuth.tex' pages > flushing realpage 3, userpage 3, subpage 3 close source > level 2, order 11, name 'knuth.tex' open source > level 2, order 12, name 'knuth.tex' close source > level 2, order 12, name 'knuth.tex' pages > flushing realpage 4, userpage 4, subpage 4 fonts > defining > font with asked name 'urbanist-italic.otf' is not found using lookup 'name' fonts > defining > unable to define 'urbanist-italic.otf' as 'urbanist-15pt-ss-it-0--0' open source > level 2, order 13, name 'knuth.tex' close source > level 2, order 13, name 'knuth.tex' open source > level 2, order 14, name 'knuth.tex' close source > level 2, order 14, name 'knuth.tex' open source > level 2, order 15, name 'knuth.tex' close source > level 2, order 15, name 'knuth.tex' open source > level 2, order 16, name 'knuth.tex' pages > flushing realpage 5, userpage 5, subpage 5 close source > level 2, order 16, name 'knuth.tex' open source > level 2, order 17, name 'knuth.tex' close source > level 2, order 17, name 'knuth.tex' open source > level 2, order 18, name 'knuth.tex' close source > level 2, order 18, name 'knuth.tex' open source > level 2, order 19, name 'knuth.tex' pages > flushing realpage 6, userpage 6, subpage 6 close source > level 2, order 19, name 'knuth.tex' open source > level 2, order 20, name 'knuth.tex' close source > level 2, order 20, name 'knuth.tex' open source > level 2, order 21, name 'knuth.tex' pages > flushing realpage 7, userpage 7, subpage 7 close source > level 2, order 21, name 'knuth.tex' open source > level 2, order 22, name 'knuth.tex' close source > level 2, order 22, name 'knuth.tex' pages > flushing realpage 8, userpage 8, subpage 8 fonts > defining > font with asked name 'urbanist-bold.otf' is not found using lookup 'name' fonts > defining > unable to define 'urbanist-bold.otf' as 'urbanist-15pt-ss-bf-0--0' open source > level 2, order 23, name 'knuth.tex' close source > level 2, order 23, name 'knuth.tex' open source > level 2, order 24, name 'knuth.tex' close source > level 2, order 24, name 'knuth.tex' open source > level 2, order 25, name 'knuth.tex' close source > level 2, order 25, name 'knuth.tex' open source > level 2, order 26, name 'knuth.tex' pages > flushing realpage 9, userpage 9, subpage 9 close source > level 2, order 26, name 'knuth.tex' open source > level 2, order 27, name 'knuth.tex' close source > level 2, order 27, name 'knuth.tex' open source > level 2, order 28, name 'knuth.tex' close source > level 2, order 28, name 'knuth.tex' open source > level 2, order 29, name 'knuth.tex' pages > flushing realpage 10, userpage 10, subpage 10 close source > level 2, order 29, name 'knuth.tex' open source > level 2, order 30, name 'knuth.tex' close source > level 2, order 30, name 'knuth.tex' open source > level 2, order 31, name 'knuth.tex' pages > flushing realpage 11, userpage 11, subpage 11 close source > level 2, order 31, name 'knuth.tex' open source > level 2, order 32, name 'knuth.tex' close source > level 2, order 32, name 'knuth.tex' pages > flushing realpage 12, userpage 12, subpage 12 fonts > defining > font with asked name 'urbanist-bolditalic.otf' is not found using lookup 'name' fonts > defining > unable to define 'urbanist-bolditalic.otf' as 'urbanist-15pt-ss-bi-0--0' open source > level 2, order 33, name 'knuth.tex' close source > level 2, order 33, name 'knuth.tex' open source > level 2, order 34, name 'knuth.tex' close source > level 2, order 34, name 'knuth.tex' open source > level 2, order 35, name 'knuth.tex' close source > level 2, order 35, name 'knuth.tex' open source > level 2, order 36, name 'knuth.tex' pages > flushing realpage 13, userpage 13, subpage 13 close source > level 2, order 36, name 'knuth.tex' open source > level 2, order 37, name 'knuth.tex' close source > level 2, order 37, name 'knuth.tex' open source > level 2, order 38, name 'knuth.tex' close source > level 2, order 38, name 'knuth.tex' open source > level 2, order 39, name 'knuth.tex' pages > flushing realpage 14, userpage 14, subpage 14 close source > level 2, order 39, name 'knuth.tex' open source > level 2, order 40, name 'knuth.tex' close source > level 2, order 40, name 'knuth.tex' open source > level 2, order 41, name 'knuth.tex' pages > flushing realpage 15, userpage 15, subpage 15 close source > level 2, order 41, name 'knuth.tex' open source > level 2, order 42, name 'knuth.tex' close source > level 2, order 42, name 'knuth.tex' pages > flushing realpage 16, userpage 16, subpage 16 close source > level 1, order 42, name 'sample.tex' backend > xmp > using file 'C:/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' system > start used files system > text: sample system > stop used files system > start used files system > 1: filename=publ-imp-default.lua filetype=lua foundname=C:/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=C:/context/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database system > 2: filename=cont-new.mkxl filetype=tex foundname=C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database system > 3: filename=lang-exc.lua filetype=lua foundname=C:/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=C:/context/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database system > 4: filename=lang-us.lua filetype=lua foundname=C:/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=C:/context/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database system > 5: filename=sample.tex format=tex foundname=sample.tex fullname=C:/Users/alan/Desktop/sample.tex usedmethod=direct system > 6: filename=lm.lfg filetype=tex foundname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database system > 7: filename=latinmodern-math.otf filetype=otf format=otf foundname=C:/context/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf fullname=C:/context/tex/texmf/fonts/data/gust/lm/latinmodern-math.otf usedmethod=database system > 8: filename=modern-math.lfg filetype=tex foundname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg fullname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/modern-math.lfg usedmethod=database system > 9: filename=common-math.lfg filetype=tex foundname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg fullname=C:/context/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg usedmethod=database system > 10: filename=LatinModernMath-Companion.otf filetype=otf format=otf foundname=C:/context/tex/texmf/fonts/data/cms/companion/LatinModernMath-Companion.otf fullname=C:/context/tex/texmf/fonts/data/cms/companion/LatinModernMath-Companion.otf usedmethod=database system > 11: filename=knuth.tex filetype=tex format=tex foundname=C:/context/tex/texmf-context/tex/context/sample/common/knuth.tex fullname=C:/context/tex/texmf-context/tex/context/sample/common/knuth.tex usedmethod=database system > 12: filename=lpdf-pdx.xml filetype=tex foundname=C:/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=C:/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database system > stop used files system > start commandline options system > autopdf="true" system > currentrun="1" system > fulljobname=".\\sample.tex" system > input=".\\sample.tex" system > kindofrun="1" system > maxnofruns="9" system > texmfbinpath="C:/context/tex/texmf-win64/bin" system > stop commandline options system > start commandline files system > 1: .\\sample.tex system > stop commandline files modules > start used modules modules > stop used modules system > system > status after finishing run system > system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > string pool hash lookup node token buffer input file nest parameter save font language mark insert system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > max 2097152 100000000 2097152 2097152 100000000 10000000 100000000 100000 2000 10000 100000 500000 100000 10000 10000 500 system > min 150000 10000000 150000 150000 2000000 2000000 1000000 10000 500 1000 20000 100000 250 250 50 10 system > set 500000 10000000 250000 250000 50000000 10000000 10000000 100000 2000 10000 100000 500000 100000 250 250 250 system > stp 100000 1000000 100000 100000 500000 500000 1000000 10000 250 1000 10000 10000 250 250 50 25 system > system > mem 150000 989768 150000 2000000 2000000 1000000 10000 500 1000 20000 10000 7298112 96 1200 320 system > all 2400000 989768 2400000 18000000 16000000 1000000 320000 16000 88000 80000 160000 7298112 96 28800 10240 system > system > ini 2147353 955035 0 50184 0 556506 0 system > ptr 51598 10725 51581 587270 0 0 0 0 0 0 22 0 0 9 system > top 51599 807106 131074 39846 581634 219 30 5 12 35 183 250 250 50 10 system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > system > current input type : initial system > system > approximate memory : 52203104 (49 MB) system > system > expansion depth : min: 10000, max: 1000000, set: 10000, top: 6 system > system > luabytecode registers : 1020 system > luabytecode bytes : 16336 (0 MB) system > luastate bytes now : 60496062 (57 MB) system > luastate bytes max : 60496062 (57 MB) system > system > file callbacks : 758 system > saved callbacks : 4035 system > direct callbacks : 2 system > function callbacks : 803 system > value callbacks : 295 system > message callbacks : 0 system > bytecode callbacks : 625 system > system > mp instances : 0 system > mp estimated memory : 0 (0 MB) system > mp file callbacks : 0 system > mp text callbacks : 0 system > mp script callbacks : 0 system > mp log callbacks : 0 system > system > total callbacks : 6518 system > mp total callbacks : 0 system > backend callbacks : 0 system > system > linebreak par context : normal 132 128 ( 97%) 0 ( 0%) 0 ( 0%) system > linebreak par context : vbox 48 0 ( 0%) 0 ( 0%) 0 ( 0%) system > system > hyphenation state : checked 220 system > hyphenation state : hyphenated 1320 system > hyphenation state : lists 220 system > hyphenation state : nothing 136 system > hyphenation state : words 2040 system > mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.004 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: <none> mkiv lua stats > stored bytecode data: 520 modules (0.182 sec), 105 tables (0.012 sec), 625 chunks (0.194 sec) mkiv lua stats > traced context: maxstack: 1784, freed: 0, unreachable: 1784 mkiv lua stats > cleaned up reserved nodes: 75 nodes, 8 lists of 437 mkiv lua stats > node memory usage: 9 attribute, 2 glue, 133 gluespec, 1 kern, 655 mathspec, 3 penalty, 1 specification, 2 temp mkiv lua stats > node list callback tasks: 16 unique task lists, 11 instances (re)created, 1898 calls mkiv lua stats > driver time: 0.057 seconds mkiv lua stats > used backend: pdf mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: file: 758, saved: 4035, direct: 2, function: 803, value: 295, message: 0, bytecode: 625, late 0, total: 6518 (407 per page) mkiv lua stats > randomizer: resumed with value 0.95581354328473 mkiv lua stats > loaded patterns: en::1, load time: 0.000 mkiv lua stats > loaded fonts: 2 files: latinmodernmath-companion.otf, latinmodern-math.otf mkiv lua stats > font engine: otf 3.144, afm 1.541, tfm 1.000, 12 instances, 8 shared in backend, 4 common vectors, 4 common hashes, load time 0.226 seconds mkiv lua stats > body font sizes: defined: 10pt 11pt 12pt 14.4pt 17.3pt 20.7pt 4pt 5pt 6pt 7pt 8pt 9pt, undefined: 15pt mkiv lua stats > math tweaking time: 0.083 seconds, 18 math goodie tables mkiv lua stats > font embedding time: 0.003 seconds, 1 fonts mkiv lua stats > result saved in file: .\\sample.pdf, compresslevel 1, objectcompresslevel 3, 20 streams, 0 uncompressed, 19 compressed, 1 not compressed, threshold 40 mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries mkiv lua stats > used platform: win64, type: windows, binary subtree: texmf-win64 mkiv lua stats > used engine: luametatex version: 2.11.03, functionality level: 2024013, format id: 703, compiler: gcc mkiv lua stats > tex properties: 807106 hash slots used of 2097152, 51581 control sequences, approximate memory usage: 49 MB mkiv lua stats > lua properties: engine: lua 5.5, used memory: 60 MB, ctx: 57 MB, max: 57 MB, symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.663 seconds, 16 processed pages, 16 shipped pages, 24.122 pages/second ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror) archive :https://github.com/contextgarden/context wiki :https://wiki.contextgarden.net ___________________________________________________________________________________
-- Jean-Pierre Delange Professeur Agrégé de Philosophie (Hors-Cadres) "Few discoveries are more irritating than the pedigree of ideas” John Emmerich Edward Dalberg, Lord Acton
Here is what I did (and it worked) * clone the repo * mkdir [context root]/tex/texmf-fonts/fonts/data/urbanist * copy the *.otfs there * mtxrun —generate * fix 3 errors in your typescript (“name:” => “file:”) * done (for Hraban: mtxrun —scripts fonts —reload will run automatically if a font cannot be found)
On 22 Jul 2024, at 10:33, alan.caruanambom@gmail.com wrote:
Hello, I was trying to install the urbanist fonts (https://github.com/coreyhu/Urbanist) but I couldn't get it to load and save the fonts in the system folder and in the ConTeXt folder without success, I could only get it to load when saving them in the current working directory but that is annoying, help me by telling me the correct way to install it... I leave you my code so you can review it and give me advice to improve it
\starttypescript [sans] [urbanist] \definefontsynonym [Urbanist][file:urbanist-regular.otf*default][features=default] \definefontsynonym [UrbanistItalic][name:urbanist-italic.otf*default][features=default] \definefontsynonym [UrbanistBold][name:urbanist-bold.otf*default][features=default] \definefontsynonym [UrbanistBoldItalic][name:urbanist-bolditalic.otf*default][features=default] \stoptypescript
\starttypescript [sans] [urbanist] \definefontsynonym [Sans][Urbanist][features=default] \definefontsynonym [SansItalic][UrbanistItalic][features=default] \definefontsynonym [SansBold][UrbanistBold][features=default] \definefontsynonym [SansBoldItalic][UrbanistBoldItalic][features=default] \stoptypescript
\definetypeface[urbanist][ss][sans][urbanist][default]
\setupbodyfont[urbanist,30pt]
\starttext \dorecurse{100}{\bf \input knuth \crlf} \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
— Taco Hoekwater E: taco@bittext.nl genderfluid (all pronouns)
In which directory did you save the fonts? I saved them in %windir%\fonts and it doesn't work
As Taco suggested, the best way to install new fonts on MS Windows (and other OSes) is to tell ConTeXt where they are located. On Windows, fonts are usually found in /Fonts. But you still need to purge the font cache and regenerate it so that the system can interact with ConTeXT. A safer method is to create separate directories, as indicated by Taco: /tex/texmf-fonts/fonts/data/urbanist. You can also distinguish between True Type fonts (ttf) and Open Type fonts (otf) by separating folders as follows: /tex/texmf-fonts/fonts/otf/ and /tex/texmf-fonts/fonts/ttf/. Then, of course, you need to regenerate the cache and test support for the newly installed font with the following commands: 1) mtxrun --script cache --erase && mtxrun --generate 2) mtxrun --script fonts --reload 3) Search for a specific font: mtxrun --script fonts --list --pattern=urbanist --all Le 22/07/2024 à 12:00, alan.caruanambom@gmail.com a écrit :
In which directory did you save the fonts? I saved them in %windir%\fonts and it doesn't work ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
-- Jean-Pierre Delange Professeur Agrégé de Philosophie (Hors-Cadres) "Few discoveries are more irritating than the pedigree of ideas” John Emmerich Edward Dalberg, Lord Acton
Jean-Pierre Delange schrieb am 22.07.2024 um 12:29:
As Taco suggested, the best way to install new fonts on MS Windows (and other OSes) is to tell ConTeXt where they are located. On Windows, fonts are usually found in /Fonts. But you still need to purge the font cache and regenerate it so that the system can interact with ConTeXT. A safer method is to create separate directories, as indicated by Taco: /tex/texmf-fonts/fonts/data/urbanist. You can also distinguish between True Type fonts (ttf) and Open Type fonts (otf) by separating folders as follows: /tex/texmf-fonts/fonts/otf/ and /tex/texmf-fonts/fonts/ttf/.
When you use context for a single user you can create a folder texmf in the users home directory and place all files in the subfolder fonts/data, e.g. C:\Users\...\texmf\fonts\data> There is no need to make distinctions between the two file extension ttf and otf because they are meaningless because most truetype fonts are also opentype font. Wolfgang
Thank you Wolfgang! I didn't know this detail, always considering this distinction between different folders for font types. I did know, however, that mtxrun now contains automatic routines with regard to pointing to the %win%/fonts path. Le 22/07/2024 à 18:52, Wolfgang Schuster a écrit :
Jean-Pierre Delange schrieb am 22.07.2024 um 12:29:
As Taco suggested, the best way to install new fonts on MS Windows (and other OSes) is to tell ConTeXt where they are located. On Windows, fonts are usually found in /Fonts. But you still need to purge the font cache and regenerate it so that the system can interact with ConTeXT. A safer method is to create separate directories, as indicated by Taco: /tex/texmf-fonts/fonts/data/urbanist. You can also distinguish between True Type fonts (ttf) and Open Type fonts (otf) by separating folders as follows: /tex/texmf-fonts/fonts/otf/ and /tex/texmf-fonts/fonts/ttf/.
When you use context for a single user you can create a folder texmf in the users home directory and place all files in the subfolder fonts/data, e.g.
C:\Users\...\texmf\fonts\data>
There is no need to make distinctions between the two file extension ttf and otf because they are meaningless because most truetype fonts are also opentype font.
Wolfgang
-- Jean-Pierre Delange Professeur Agrégé de Philosophie (Hors-Cadres) "Few discoveries are more irritating than the pedigree of ideas” John Emmerich Edward Dalberg, Lord Acton
Thanks, that was what I needed... Could you review my code, I don't understand much about loading external sources
participants (5)
-
alan.caruanambom@gmail.com
-
Henning Hraban Ramm
-
Jean-Pierre Delange
-
Taco Hoekwater
-
Wolfgang Schuster