View Issue Details

IDProjectCategoryView StatusLast Update
0007153ScribusFontspublic2016-12-08 22:04
Reportercicada Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status acknowledgedResolutionopen 
Product Version1.3.5svn 
Target Version1.5.4 
Summary0007153: Font Name should be shown in its own language
DescriptionI am using Traditional Chinese.
Scribus can only show Font names in its English name (no matter in Font Selector or Font Previewer), but not in its original Chinese name, which are very inconvenience.


Edit: merging 0011453 in to this ticket
I have a set of Japanese font from Epson installed
(Free download here: http://www.epson.jp/download2/printer/driver/win/page/ttf30.htm [^] . Click on the url with ttf30.exe)

These fonts do not have latin names, but only Japanese. For instead, one font has the name EPSON ???????, but it is displayed as EPSON ??????????????a.

I guess the fonts only have some japanese encoding, not Unicode, therefore it won't work.

Please see the attached file.
TagsCJK, HOST-Oman, scribusctl
PatchNo

Relationships

has duplicate 0008898 closedjghali No support show font's Chinese name 
has duplicate 0011453 closed Non-latin font name is only displayed with ??? 
related to 0009128 acknowledged Combobox should show fontnames in the proper font 

Activities

subik

2009-01-28 08:48

manager   ~0021022

BTW where are stored national names in fonts?

pierremarchand

2009-01-29 12:42

reporter   ~0021040

Last edited: 2009-01-29 12:43

In NAME table. I’ll try to handle it at some point, but font identifier will remain the default name as reported by FreeType and is generally in en. Which could (if different from the displayed name) lead to some problems here and there (eg. if you want to hack a Scribus file, which is highly legitimate) but necessary to ensure some consistancy when sharing a file.
And it’s only available in SFNT based fonts such as TTFs and OTFs. I don’t know about localized names in PS fonts, will have a look.

386sky

2009-10-12 09:56

reporter   ~0022676

It will be good if jghali adds the blocks
U+0250-U+02AF: IPA Extensions
U+02B0-U+02FF: Spacing Modifier Letters
U+0300-U+036F: Combining Diacritical Marks
to support phonetic symbols and

U+3000-U+303F: CJK Symbols and Punctuation
U+3040-U+309F: Hiragana
U+30A0-U+30FF: Katakana
U+4E00-U+9FA5: CJK Unified Ideographs
U+FF00-U+FFEF: Halfwidth and Fullwidth Forms
to support Japanese!

plinnell

2009-10-12 20:06

viewer   ~0022684

Adding this support is not trivial. So, to the original reporter, please be patient with this feature request. It takes a lot to implement this and some parts of the fix are dependent on other third party libraries.

Kunda

2016-01-29 12:27

updater   ~0038486

Last edited: 2016-01-29 12:36

http://www.omniglot.com/language/names.htm is a list of native/local names for languages in their own scripts

What does this feature depend on exactly to implement?

Reference: I think this is where it's at in trunk: https://github.com/scribusproject/scribus/blob/a75ace2009dd838f22aa99b5c8b0a2ecf57d03c8/scribus/langmgr.cpp#L86

Kunda

2016-01-29 18:52

updater   ~0038488

According to Craig:
<Kunda> we're at the mercy of the designated UI font chosen by user, right ?
<MrB> Kunda: yes
<MrB> if the glyphs are not in the current gui font then we need to do something entirely different, ie, render the text into an image and stick that in the menu
<MrB> ...and i dont think we're planning on rendering any fonts into their own images any time soon :)

Kunda

2016-04-11 19:49

updater   ~0040090

related: 0011453

Kunda

2016-04-19 12:54

updater   ~0040305

Merging 0011453 in to this bug.

Kunda

2016-04-19 12:54

updater  

Kunda

2016-04-19 12:56

updater   ~0040306

jghali writes in 0011453:0029982
We could indeed do better on Windows when searching font family name. FontConfig uses the internal name table and uses FreeType family name as a last resort:

http://www.opensource.apple.com/source/X11/X11-0.40/xc/extras/fontconfig/src/fcfreetype.c 

Kunda

2016-04-19 12:56

updater   ~0040307

in my estimation I've assigned this to 1.5.3 since CTL has a high probability of being merged, we'll most likely need this issue to work as well.

user5122

2016-05-07 03:56

  ~0040857

There are two issue here:
* The font has bogus name entries for Macintosh platform marked as Mac Roman encoded while they are actually Japanese.
* The font has correctly encoded name entries for Microsoft platform in UCS-2 encoding, but FreeType seems to prefer the Macintosh platform names.

One way to fix this is to parse the name table entries our selves and prefer the Unicode encoded names (the Macintosh names tend to have all sorts of crap in it since it is rarely tested as most software will prefer other platforms when present). This what FontConfig does and it reports the correct font names.

The other way is to change FreeType to do something similar and submit the patch upstream.

(Here is a link for the name table for people who are not familiar with its arcane terminology https://www.microsoft.com/typography/otspec/name.htm).

user5122

2016-05-07 15:22

 

font-name.png (31,955 bytes)   
font-name.png (31,955 bytes)   

user5122

2016-05-07 15:24

  ~0040876

I changed the CTL branch to read the family name from the name table directly and to prefer name records that are less likely to be broken: https://github.com/HOST-Oman/scribus/commit/9d853ea05312c5f8be32b0aea143a563e124ac5b, the screenshot shows this font being rendered correctly.

Issue History

Date Modified Username Field Change
2008-07-20 16:37 cicada New Issue
2009-01-28 08:48 subik Note Added: 0021022
2009-01-29 12:42 pierremarchand Note Added: 0021040
2009-01-29 12:43 pierremarchand Note Edited: 0021040
2009-10-12 09:56 386sky Note Added: 0022676
2009-10-12 20:06 plinnell Note Added: 0022684
2009-10-12 20:06 plinnell Assigned To => pierremarchand
2009-10-12 20:06 plinnell Severity minor => feature
2009-10-12 20:06 plinnell Status new => assigned
2009-10-12 20:06 plinnell Projection none => major rework
2009-10-12 20:06 plinnell Target Version => 1.5.0
2010-03-02 09:06 jghali Relationship added has duplicate 0008898
2014-07-02 02:29 Kunda Assigned To pierremarchand =>
2014-07-02 02:29 Kunda Target Version 1.5.0 => 1.7 milestone
2016-01-29 12:27 Kunda Note Added: 0038486
2016-01-29 12:29 Kunda Patch => No
2016-01-29 12:29 Kunda Status assigned => acknowledged
2016-01-29 12:29 Kunda OS XP SP3 =>
2016-01-29 12:29 Kunda OS Version XP SP3 =>
2016-01-29 12:29 Kunda Platform windows =>
2016-01-29 12:29 Kunda Target Version 1.7 milestone => 1.6 milestone
2016-01-29 12:35 Kunda Note Edited: 0038486
2016-01-29 12:36 Kunda Note Edited: 0038486
2016-01-29 18:52 Kunda Note Added: 0038488
2016-04-02 13:32 Kunda Relationship added related to 0011453
2016-04-11 19:49 Kunda Note Added: 0040090
2016-04-19 12:53 Kunda Tag Attached: CJK
2016-04-19 12:53 Kunda Tag Attached: HOST-Oman
2016-04-19 12:53 Kunda Tag Attached: scribusctl
2016-04-19 12:54 Kunda Note Added: 0040305
2016-04-19 12:54 Kunda File Added: japanese font names not working.png
2016-04-19 12:56 Kunda Note Added: 0040306
2016-04-19 12:56 Kunda Description Updated
2016-04-19 12:56 Kunda Note Added: 0040307
2016-04-19 12:57 Kunda Target Version 1.6 milestone => 1.5.3
2016-04-19 12:58 Kunda Relationship replaced has duplicate 0011453
2016-05-07 03:56 user5122 Note Added: 0040857
2016-05-07 15:22 user5122 File Added: font-name.png
2016-05-07 15:24 user5122 Note Added: 0040876
2016-05-28 13:29 Kunda Relationship added related to 0009128
2016-12-08 22:04 Kunda Target Version 1.5.3 => 1.5.4