ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Strange character output when mixing different fonts
@ 2024-12-18 10:41 autumnus 
  2024-12-18 16:33 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: autumnus  @ 2024-12-18 10:41 UTC (permalink / raw)
  To: ntg-context

hi,

When I mix the four fonts below, only the serif (mincho) outputs my characters correctly. 
However, if I only use any of these fonts for output, I will get normal characters.
It's not clear to me if this is a bug with the font itself or what. 
If it's an issue with the fonts themselves, 
I'll report the bug to the designers of those fonts. 
But I'm not a programmer, so I'll only ask questions here.

font: https://drive.google.com/drive/folders/1uk6fLzn8ZD0MeHSv78cFbQo4cclkOuly?usp=sharing

汇文明朝 -- huiwenmincho
汇文港黑 -- huiwenhkheiregular
汇文仿宋 -- huiwenfangsongregular
汇文正楷 -- huiwenzhengkairegular


%%%%%
\starttext
{
{\definedfont[name:huiwenmincho]                Lorem Ipsum , 也称乱数假文}\par% normal
{\definedfont[name:huiwenhkheiregular]       Lorem Ipsum , 也称乱数假文}\par% normal
{\definedfont[name:huiwenfangsongregular]Lorem Ipsum , 也称乱数假文}\par%  abnormal 
{\definedfont[name:huiwenzhengkairegular]Lorem Ipsum , 也称乱数假文}%  abnormal 
}
\stoptext

autumnus
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Strange character output when mixing different fonts
  2024-12-18 10:41 [NTG-context] Strange character output when mixing different fonts autumnus 
@ 2024-12-18 16:33 ` Wolfgang Schuster
  2024-12-18 17:03   ` autumnus 
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2024-12-18 16:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users, autumnus

autumnus schrieb am 18.12.2024 um 11:41:
> hi,
>
> When I mix the four fonts below, only the serif (mincho) outputs my characters correctly.
> However, if I only use any of these fonts for output, I will get normal characters.
> It's not clear to me if this is a bug with the font itself or what.
> If it's an issue with the fonts themselves,
> I'll report the bug to the designers of those fonts.
> But I'm not a programmer, so I'll only ask questions here.
>
> font: https://drive.google.com/drive/folders/1uk6fLzn8ZD0MeHSv78cFbQo4cclkOuly?usp=sharing
>
> 汇文明朝 -- huiwenmincho
> 汇文港黑 -- huiwenhkheiregular
> 汇文仿宋 -- huiwenfangsongregular
> 汇文正楷 -- huiwenzhengkairegular

Does the problem disappear when you change the filenames from chinese to 
latin names, e.g.  匯文港黑.ttf will become huiwenhkheiregular.ttf

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Strange character output when mixing different fonts
  2024-12-18 16:33 ` [NTG-context] " Wolfgang Schuster
@ 2024-12-18 17:03   ` autumnus 
  0 siblings, 0 replies; 3+ messages in thread
From: autumnus  @ 2024-12-18 17:03 UTC (permalink / raw)
  To: ntg-context

It worked, thanks. 
BTW, is this a common solution for font names that contain CJK characters?

autumnus
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-18 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-18 10:41 [NTG-context] Strange character output when mixing different fonts autumnus 
2024-12-18 16:33 ` [NTG-context] " Wolfgang Schuster
2024-12-18 17:03   ` autumnus 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).