[lucida] install Lucida Bright OpenType for TeXLive (2024-03-21 release)
hf at hongfeng.ch
hf at hongfeng.ch
Mon Mar 25 03:54:40 CET 2024
Hello Bruno,
I tried to install and use Lucida Bright Opentype font with ConTeXt by your given link
`https://wiki.contextgarden.net/Installation`. Here is what I did on Pop!_OS (GNU/Linux, x64 PC):
1. The zip file for my downloading is `context-linux-64.zip`. Followed the
steps given in the instruction, I installed ConTeXt successfully, the
root directory for ConTeXt on my computer is `/home/hf/WORKSPACE/TOOLS/ConTeXt`,
2. I installed Lucida Bright Opentype font under this directory:
`/home/hf/WORKSPACE/TOOLS/ConTeXt/tex/texmf-local`
(just copying the font zip file into it, and in the directory, ran the command
`unzip lucidaot-tex.zip`)
3. I set up the shell environment variable for $PATH, added the path for context
in `~/.zshrc` (I use zsh, the most friendly shell to programmers):
```
if [ -d "$TOOLS/ConTeXt" ] ; then
PATH="$TOOLS/ConTeXt/tex/texmf-linux-64/bin:$PATH
fi
```
(don't forget to `source .zshrc` to refresh the setting.)
4. run this command:
```
$ mtxrun --generate
```
5. Edit a simple file named `try-context.tex`:
```
\loadtypescriptfile[lucida]
\setupbodyfont[lucida]
\starttext
Testing Lucida Bright's OpenType font. \quotation{Very nice!}
\stoptext
```
6. typeset `try-context.tex` using ConTeXt:
```
$ context try-context
```
it generated `try-context.pdf` successfully, and Lucida Bright Opentype font
is used! I attached the output pdf file with this email.
Later, I will try to use Lucida Bright Opentype with ConTeXt in with the TeXLive
dated March 24, 2024 which I downloaded this morning.
Best,
Hong
2024年3月25日 00:44, "Bruno Voisin" <bvoisin at icloud.com> 写到:
>> On 24 Mar 2024, at 16:22, Mikael Sundqvist <mickep at gmail.com> wrote:
>>
>> \setupbodyfont[lucida]
>>
>> \starttext
>>
>> This is a test
>>
>> \stoptext
>>
>> works here. I put the Lucida otf files in ~/.fonts that also happens
>>
>> to be $OSFONTDIR.
>>
>> I hope it helps.
>
> Hi,
>
> This doesn't work here (on the Mac), the output is Latin Modern, not Lucida.
>
> My setup:
>
> - ConTeXt from TeX Live 2024 (ie no separate install directly from ConTeXt Garden).
>
> - Lucida OpenType fonts installed at /usr/local/texlive/texmf-local/fonts/opentype/bh/lucidaot/.
>
> Looking at the font name databases
>
> ~/Library/texlive/2024/texmf-var/luametatex-cache/context/a86c089b384a3076dc514ba966a1fac9/fonts/data/names.tma
>
> ~/Library/texlive/2024/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/fonts/data/names.tma
>
> (equivalent to ~/.texlive2024/[...] on Unix), I notice none of the fonts from texmf-local, including
> Lucida OpenType, is listed there. Is this intended?
>
> To be sure, I updated the database in luametatex-cache with "mtxrun --script fonts --reload": no
> change. I don't know the instruction to update the database inside luatex-cache.
>
> In case that is relevant: on the LaTeX side, the database at
> ~/Library/texlive/2024/texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz, created by
> luaotfload-tool (based on ConTeXt code), contains all the fonts from texmf-local, including Lucida
> OpenType.
>
> Below is the log when typesetting your input with ConTeXt MkIV.
>
> Bruno
>
> % context --luatex try-context.tex
>
> mtx-context | redirect luametatex -> luatex: luatex --luaonly --socket
> "/Library/TeX/texbin/mtxrun.lua" --script mtx-context --luatex try-context.tex --redirected
>
> resolvers | formats | executing runner 'run luatex format':
> /usr/local/texlive/2024/bin/universal-darwin/luatex --jobname="try-context" --socket --shell-escape
> --fmt=/Users/brunovoisin/Library/texlive/2024/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.fmt
> --lua=/Users/brunovoisin/Library/texlive/2024/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui
> cont-yes.mkiv --c:currentrun=1 --c:engine="luatex" --c:fulljobname="./try-context.tex"
> --c:input="./try-context.tex" --c:kindofrun=1 --c:luatex --c:maxnofruns=9 --c:redirected
> --c:texmfbinpath="/usr/local/texlive/2024/bin/universal-darwin"
>
> This is LuaTeX, Version 1.18.0 (TeX Live 2024) system commands enabled.
>
> open source > level 1, order 1, name
> '/usr/local/texlive/2024/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
>
> system > system > ConTeXt ver: 2024.02.27 09:18 MKIV fmt: 2024.3.13 int: english/english
>
> system > system > 'cont-new.mkiv' loaded
>
> open source > level 2, order 2, name
> '/usr/local/texlive/2024/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
>
> system > beware: some patches loaded from cont-new.mkiv
>
> close source > level 2, order 2, name
> '/usr/local/texlive/2024/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
>
> system > 'cont-sys.mkiv' loaded
>
> open source > level 2, order 3, name
> '/usr/local/texlive/2024/texmf-dist/tex/context/texlive/cont-sys.mkiv'
>
> open source > level 3, order 4, name
> '/usr/local/texlive/2024/texmf-config/tex/context/user/context-papersize.tex'
>
> close source > level 3, order 4, name
> '/usr/local/texlive/2024/texmf-config/tex/context/user/context-papersize.tex'
>
> close source > level 2, order 4, name
> '/usr/local/texlive/2024/texmf-dist/tex/context/texlive/cont-sys.mkiv'
>
> system > files > jobname 'try-context', input './try-context', result 'try-context'
>
> fonts > latin modern fonts are not preloaded
>
> languages > language 'en' is active
>
> open source > level 2, order 5, name
> '/Users/brunovoisin/Desktop/Transfert/Logiciels/Lucida/try-context.tex'
>
> fonts > preloading latin modern fonts (third stage)
>
> fonts > 'fallback modern-designsize rm 12pt' is loaded
>
> backend > xmp > using file '/usr/local/texlive/2024/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
>
> pages > flushing realpage 1, userpage 1, subpage 1
>
> close source > level 2, order 5, name
> '/Users/brunovoisin/Desktop/Transfert/Logiciels/Lucida/try-context.tex'
>
> close source > level 1, order 5, name
> '/usr/local/texlive/2024/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
>
> mkiv lua stats > used config file:
> selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
>
> mkiv lua stats > used cache path: readable+writable:
> '/Users/brunovoisin/Library/texlive/2024/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
>
> mkiv lua stats > resource resolver: loadtime 0.065 seconds, 1 scans with scantime 0.000 seconds, 0
> shared scans, 15 found files, scanned paths: /Users/brunovoisin/Library/texmf
>
> mkiv lua stats > stored bytecode data: 458 modules (0.157 sec), 96 tables (0.006 sec), 554 chunks
> (0.163 sec)
>
> mkiv lua stats > traced context: maxstack: 1438, freed: 0, unreachable: 1438
>
> mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 442
>
> mkiv lua stats > node memory usage: 11 attribute, 4 attribute_list, 1 glue, 51 glue_spec, 3 kern, 2
> penalty, 2 temp, 2 user_defined
>
> mkiv lua stats > node list callback tasks: 8 unique task lists, 7 instances (re)created, 38 calls
>
> mkiv lua stats > driver time: 0.051 seconds mkiv lua stats > used backend: pdf (backend for directly
> generating pdf output)
>
> mkiv lua stats > jobdata time: 0.000 seconds saving, 0.000 seconds loading
>
> mkiv lua stats > callbacks: internal: 141, file: 108, direct: 3, late: 0, function 632, total: 884
> (884 per page)
>
> mkiv lua stats > randomizer: resumed with value 0.91580429952592
>
> mkiv lua stats > result saved in file: try-context.pdf, compresslevel 3, objectcompresslevel 1
>
> mkiv lua stats > loaded patterns: en::1, load time: 0.000
>
> mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
>
> mkiv lua stats > font engine: otf 3.140, afm 1.540, tfm 1.000, 7 instances, 3 shared in backend, 3
> common vectors, 0 common hashes, load time 0.084 seconds mkiv lua stats > used platform: osx-arm,
> type: unix, binary subtree: bin
>
> mkiv lua stats > used engine: luatex version: 1.18, functionality level: 7611, banner: this is
> luatex, version 1.18.0 (tex live 2024)
>
> mkiv lua stats > used hash slots: 47579 of 65536 + 250000
>
> mkiv lua stats > lua properties: engine: lua 5.3, used memory: 163 MB, ctx: 163 MB, max: unknown MB,
> hash chars: min(64,40), symbol mask: utf (τεχ)
>
> mkiv lua stats > runtime: 0.326 seconds, 1 processed pages, 1 shipped pages, 3.067 pages/second
>
> system | total runtime: 0.497 seconds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try-context.tex
Type: application/octet-stream
Size: 135 bytes
Desc: not available
URL: <https://tug.org/pipermail/lucida/attachments/20240325/afe9d296/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try-context.pdf
Type: application/pdf
Size: 7506 bytes
Desc: not available
URL: <https://tug.org/pipermail/lucida/attachments/20240325/afe9d296/attachment.pdf>
More information about the lucida
mailing list.