Re: [NTG-context] Switching fonts changes framedtext justification
Works flawlessly, thank you! Here's a demo with left and right speech bubbles: \definefont [TextFontEmoji] [OpenSansEmoji] \startuseMPgraphic{TextBubble}{side} z1 = (0, 0) ; z2 = (OverlayWidth, 0) ; z3 = (OverlayWidth, OverlayHeight) ; z4 = (0, OverlayHeight) ; offset := 1 ; tail := 1 ; % Flip the tail's location and direction. if \MPvar{side} = 1: offset := 5 ; tail := -1 ; fi (offset/6)[x1,x2] = x8 + .25cm * tail = x7 + .25cm = x9 - .25cm ; y7 = 0cm ; y8 = -.5cm ; y9 = 0cm ; path p ; p = (z1--z7--z8--z9--z2--z3--z4--cycle) cornered .25cm ; draw p withpen pencircle scaled 0.75 ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineframedtext[TextBubbleFrame][ style=TextFontEmoji, frame=off, width=.618\textwidth, autowidth=force, offset=.75em, after={\blank[2*big]}, ] % Receive text (left-facing). \defineoverlay[TextBubbleRxOverlay][\useMPgraphic{TextBubble}{side=0}] \defineframedtext[TextBubbleRxFrame][TextBubbleFrame][ background=TextBubbleRxOverlay, location=left, ] % Send text (right-facing). \defineoverlay[TextBubbleTxOverlay][\useMPgraphic{TextBubble}{side=1}] \defineframedtext[TextBubbleTxFrame][TextBubbleFrame][ background=TextBubbleTxOverlay, location=right, ] % Map XHTML class names to start/stop environments. \definestartstop[bubblerx][ before={\startnarrower\startTextBubbleRxFrame}, after={\stopTextBubbleRxFrame\stopnarrower}, ] \definestartstop[bubbletx][ before={\startnarrower\startTextBubbleTxFrame}, after={\stopTextBubbleTxFrame\stopnarrower}, ] \starttext \startbubblerx Welcome to the future, human ! \input zapf \stopbubblerx \startbubbletx Welcome to the future, human ! \input zapf \stopbubbletx \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Switching fonts changes framedtext justification
On 4/7/22 19:50, Thangalin via ntg-context wrote: > Appreciated, Pablo. >> The output remains unjustified: > > https://i.ibb.co/dM9LFWZ/future-human.png > > $ find /usr/share/fonts/ -name "*Emoj*" > /usr/share/fonts/emoji/OpenSansEmoji.otf Sorry, I gave you the wrong direction. The OTF version has to be removed, not the TTF version (it is the one that works). I already knew that (https://mailman.ntg.nl/pipermail/ntg-context/2022/105409.html), but I mixed (and messed) versions. Sorry, "OpenSansEmoji.otf" is the one to be removed and "OpenSansEmoji.ttf" is the one to be installed. > $ context --version > mtx-context | current version: 2022.04.01 09:37 > > $ cat ~/bin/fontcache > #!/usr/bin/env bash > > fc-cache -fv > mtxrun --generate > mtxrun --script fonts --reload I had problems in the past with "mtxrun --script fonts --reload --force", so I completely remove the contents from "tex/texmf-cache/luametatex-cache/" (which requires "mtxrun --generate" after). "mtxrun --script cache --erase" used to do the same, but I cannot get it working now (either on Linux or in Windows [as reported in https://mailman.ntg.nl/pipermail/ntg-context/2022/105420.html]). > Any other suggestions? I hope it works now. Sorry for the mess, Pablo emoji.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] not working "mtxrun --scripts cache --erase"
On 4/6/22 17:11, Pablo Rodriguez via ntg-context wrote: > Dear list, > > I’m afraid that I have just found out that "mtxrun --scripts cache > --erase" doesn’t delete a single file from the cache. > [...] > I’m using current latest (2022.04.01 09:37) on Linux 64bit. I have confirmed that the same latest doesn’t delete file from the cache on Windows 64bit. I would be surprised to be the only one to experience this issue. Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Switching fonts changes framedtext justification
Appreciated, Pablo. The output remains unjustified: https://i.ibb.co/dM9LFWZ/future-human.png $ find /usr/share/fonts/ -name "*Emoj*" /usr/share/fonts/emoji/OpenSansEmoji.otf $ context --version mtx-context | current version: 2022.04.01 09:37 $ cat ~/bin/fontcache #!/usr/bin/env bash fc-cache -fv mtxrun --generate mtxrun --script fonts --reload $ cat ~/bin/fontgrep #!/usr/bin/env bash mtxrun --script fonts --list --all --name $1 | cut -d" " -f1 $ fontgrep emoji identifier opensansemoji opensansemojinormal opensansemojiregular Any other suggestions? Thank you! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___