Wings 3D Development Forum
[fixed] Error, after tried creating 3Dtext. Wings3D v2.2.6 - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [fixed] Error, after tried creating 3Dtext. Wings3D v2.2.6 (/showthread.php?tid=2872)



[fixed] Error, after tried creating 3Dtext. Wings3D v2.2.6 - tkbd - 12-11-2019

The my test enviroment is Windows10 Home(1903) - 64bit,and Wings3D v2.2.5 - 64bit

At first time,I got a following error log when run text primitive command.
Quote:caught error: {badmatch,[]}
ST:[{wpc_tt,setup_vertices,10,[{file,"wpc_tt.erl"},{line,1394}]},
{wpc_tt,get_polyarea,5,[{file,"wpc_tt.erl"},{line,370}]},
{wpc_tt,'-get_polyareas/4-fun-0-',5,[{file,"wpc_tt.erl"},{line,362}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{wpc_tt,get_polyareas,4,[{file,"wpc_tt.erl"},{line,366}]},
{wpc_tt,trygen,5,[{file,"wpc_tt.erl"},{line,242}]},
{wpc_tt,gen,5,[{file,"wpc_tt.erl"},{line,183}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,87}]},
{wings_plugin,command,3,[{file,"wings_plugin.erl"},{line,147}]},
{wings,raw_command_1,3,[{file,"wings.erl"},{line,639}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,636}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1016}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,982}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,883}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,792}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,681}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]

About Tested fonts:
How test: This is usually Latin font, but if it seems think it is a CJK font, I typed text mixed with CJK text.
Success means: Custom text entered appears as 3D text.

European font:
Success: Arial,ComicSans,Impact,Geogia,FranklinGothic,Nirmala,MV boli,Segoe,Segoe Print,Verdana,Trebuchet,TimesNewRoman OK
Failed to font location : Sitka,Script,Webding,Wingding, Many'@'fonts
Internal Error: MicrosoftSanSerif,Platino Linotype
CJK font:
Success: MS UI Gothic,MicrosoftYaHeiUI,MinLiu HKSCS-EXTB,Microsoft ThenHei font
[Image: TC78GfGt.png]
Freezed: If set a font that has non-Latin name(For example japanese font), Wings3D is freezed.
(When freeze happend,It must shutdown Wings3D from the task manager.)


RE: Error,after tried creating 3Dtext. Wings3D v2.2.5 - dgud - 02-22-2020

Fixed Sitka (and possibly other) naming problem in fonts files.

Fixed better error report for: Script,Webding,Wingding
They are not in supported format.

Many'@'fonts
Fixed by removing '@' before searching for font file, what does the @ mean?

Fixed 'Microsoft SanSerif', 'Platino Linotype' could not render space ' ' character :-)

Do you have a link to a font with non-latin name?
Don't know where it hangs so don't know if possible to fix.


RE: Error,after tried creating 3Dtext. Wings3D v2.2.5 - tkbd - 03-03-2020

dgud Wrote:Fixed 'Microsoft SanSerif', 'Platino Linotype' could not render space ' ' character :-)
dgud,Thank you fix font name problems.

dgud Wrote:Fixed by removing '@' before searching for font file, what does the @ mean?
This works like a virtual font name,and this feature is WindowsOS Only (Maybe it since Win3.x).
IF add the @ symbol with font name selection,It can be vertical writing display rotate 90 degree with counter clock work.
But multi OS support,I think recommended that font names begin with @ be excluded.

I found more reliable information about '@' font.
See a following links.
Why do some font names begin with an at-sign? from microsoft developper Blog
https://devblogs.microsoft.com/oldnewthing/20120719-00/?p=7093
https://docs.microsoft.com/en-us/previous-versions/cc194859(v=msdn.10)?redirectedfrom=MSDN


For example case that using @font in Autodesk software supportpage (The original page doesn't English version, so I used Google Translation).
https://translate.google.co.jp/translate?hl=&sl=auto&tl=en&u=https%3A%2F%2Fknowledge.autodesk.com%2Fja%2Fsearch-result%2Fcaas%2Fsfdcarticles%2Fsfdcarticles%2FkA230000000tzDH.html

In the orient from long ago, the inscriptions on all monuments are usually engraved vertical writting.
Therefore, there is a demand for using vertical 3D text in 3D work.


dgud Wrote:Do you have a link to a font with non-latin name?
Yes I have,how about these site?
WAZU JAPAN's Gallery of Unicode Fonts (It is English page)
Tons of links and resource information for Non-latin fonts(other than CJK font).
http://www.wazu.jp/index.html
http://www.wazu.jp/gallery/Fonts_Japanese.html
http://www.wazu.jp/gallery/Fonts_ChineseTraditional.html
http://www.wazu.jp/gallery/Fonts_Korean.html


http://dekasu.net/fonts/
The list of non latin font that proprietary softwares make installed together.
A following are proprietary font name list.
Code:
MSOffice2010
HGゴシックE, HGPゴシックE, HGSゴシックE, HGゴシックM, HGPゴシックM, HGSゴシックM, HG明朝B, HGP明朝B, HGS明朝B, HG明朝E, HGP明朝E, HGS明朝E, HG行書体, HGP行書体, HGS行書体, HG教科書体, HGP教科書体, HGS教科書体, HG創英角ゴシックUB, HGP創英角ゴシックUB, HGS創英角ゴシックUB, HG創英角ポップ体, HGP創英角ポップ体, HGS創英角ポップ体, HG創英プレゼンスEB, HGP創英プレゼンスEB, HGS創英プレゼンスEB, HG丸ゴシックM-Pro, HG正楷書体PRO, メイリオ, Meiryo UI,

Win8.1
MS ゴシック, MS Pゴシック, MS 明朝, MS P明朝, メイリオ, 游ゴシック, 游明朝,

MacOSX
Tamil MN, Tamil MN Bold, Tamil Sangam MN, Tamil Sangam MN Bold, Telugu MN, Telugu MN Bold, Telugu Sangam MN, Telugu Sangam MN Bold, Times New Roman Bold Italic, Times New Roman Bold, Times New Roman Italic, Times New Roman, Trebuchet MS Bold Italic, Trebuchet MS Bold, Trebuchet MS Italic, Trebuchet MS, Verdana Bold Italic, Verdana Bold, Verdana Italic, Verdana, Waseem, Waseem Light, Wawati SC Regular, Wawati TC Regular, Webdings, Weibei SC Bold, Weibei TC Bold, Wingdings 2, Wingdings 3, Wingdings, Xingkai SC Bold, Xingkai SC Light, YuGothic Bold, YuGothic Medium, YuMincho Demibold, YuMincho Medium, Yuanti SC Bold, Yuanti SC Light, Yuanti SC Regular, Yuppy SC Regular, Yuppy TC Regular, Zapfino, Hiragino Maru Gothic Pro W4, Hiragino Maru Gothic ProN W4, Hiragino Mincho Pro W3, Hiragino Mincho Pro W6, Hiragino Kaku Gothic Pro W3, Hiragino Kaku Gothic Pro W6, Hiragino Kaku Gothic Std W8, Hiragino Kaku Gothic StdN W8, LiSong Pro, LiHei Pro, STFangsong, STXihei, STHeiti,

Adobe
小塚ゴシック Pr6N B, 小塚ゴシック Pr6N EL, 小塚ゴシック Pr6N H, 小塚ゴシック Pr6N L, 小塚ゴシック Pr6N M, 小塚ゴシック Pr6N R, 小塚ゴシック Pro B, 小塚ゴシック Pro EL, 小塚ゴシック Pro H, 小塚ゴシック Pro L, 小塚ゴシック Pro M, 小塚ゴシック Pro R, 小塚明朝 Pr6N B, 小塚明朝 Pr6N EL, 小塚明朝 Pr6N H, 小塚明朝 Pr6N L, 小塚明朝 Pr6N M, 小塚明朝 Pr6N R, 小塚明朝 Pro B, 小塚明朝 Pro EL, 小塚明朝 Pro H, 小塚明朝 Pro L, 小塚明朝 Pro M, 小塚明朝 Pro R,

筆まめ
CRC&G流麗行書体, CRC&G流麗太行書体, CRC&G由紀葉太楷書体, CRC&G行刻, CRC&Gブーケ, CRC&Gれいしっく, CRバジョカ廉書体, CRバジョカ隅書体, AR行楷書体H, AR行書体B, AR楷書体M, AR隷書体M, AR宋朝体M, AR丸印篆B, AR勘亭流H, AR丸ゴシック体M, AR悠々ゴシック体E, ARハイカラPOP体H, ARPOP4B, DF行楷書W5, DF行書体W7, DF魏碑体W7, DFクラフト墨W9, DF京劇体W7, DF華藝体W6, DFロマン雪W9, DFPOPミックスW4, DFてがき桃W4, HG岸本楷書体, HG白洲太楷書体, HG白洲行草書体, HG白洲ペン楷書体, HG平成角ゴシック体W9, HG平成明朝体W9, HG創英丸ポップ体, CRC&G流麗連綿体、 AR行楷連綿体L、AR行楷連綿体H,


In Japanese font name usually use, "Hankaku Kana" characters
If these cannot be handled properly, it may cause a hang.
It seems that there is also a Japanese font also installed when MSOffice is installed.
https://en.wikipedia.org/wiki/Half-width_kana
Quote:アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン
ァィゥェォッャュョー
ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポヴ


Other font download links (OSS font)
Font Library .org
https://fontlibrary.org/en/orthographies

Google Noto font
https://www.google.com/get/noto/

M+font
https://mplus-fonts.osdn.jp/about-en.html


dgud,You are working very hard.
Thanks again! Smile


RE: Error,after tried creating 3Dtext. Wings3D v2.2.5 - dgud - 03-03-2020

This works fine:
wpc_tt:trygen("/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc", "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン", 1).
And using that font with the same text inside wings.

Using "Microsoft JhengHei UI" and string above works fine as well.

So which font and which input string causes wings to hang?


RE: Error,after tried creating 3Dtext. Wings3D v2.2.5 - tkbd - 03-06-2020

I entered and tested some special strings and complex ligature.
Also contains Apple Emoji etc... on Mac
For example a following text on M+font and Noto Sans.
Code:
た͜͜͏̘̣͔͙͎͎̘̜̫̗͍͚͓͜͜͏̘̣͔͙͎͎す͜͜͏̘̣͔͙͎͎ơ̟̤̖̗͖͇̍͋̀͆̓́͞͡け̜ͪ̅̍̅͂͊て


జ్ఞా
 ై,   ো,    ৌ
?❤????
Displaying these characters as text or object names in Wings3D did not cause a crash.Fallback for a character that cannot be displayed also is working well.

But bor some Arabian and Southeast Asian Strings, Ligature did not work well.
Unfortunately I don't know much about them.
About CJK characters seems to be fine for now.Smile


RE: Error,after tried creating 3Dtext. Wings3D v2.2.6 - tkbd - 05-18-2020

In new Wings3D v2.2.6,
The problem of font loading location has been reduced.
Changing the font size worked fine on both Windows & MacOS.
Biggrin Thank you very much!!

But in this time,The a problem happend in determining the TypeFace (font weight).

On MacOS
Almost all Japanese and Japanese-named fonts loaded correctly.
but Some Western fonts failed to load. This isn't due to the file path.
The common bug is that font styles other than Bold and Regular are not applied(Many type styles don't work).

MacOS Load failed fonts are ...
Quote:Furtura
Hoefler text
Papyrus
Lantinghei SC
Copperplate
Optima
Cochin
Big Cslon
Helvetica.ttc
Times.ttc

[Image: tcB1y1Dm.png]


[Image: meErY6Rm.png]


[Image: a5gr1gEm.png]

On Windows
On the other hand, All Japanese-named font fail to load fail and caused Serious freeze.
After that select these fonts and OK return to Geometry Window,Then 3D Geometry drawing stop
,and the context menu doesn't open. I can't do any termination, so I have to use the task manager.
(It doesn't output Error log and/or Crash log)

Windows10 Load Failed fonts are...
Quote:Courier
@All 2byte Japanese name font
All 2Byte Japanese name font


2byte japanese font name are...
BIZ UDPゴシック
BIZ UDP明朝
UDデジタル教科書体
メイリオ
MS ゴシック
MS 明朝
游ゴシック
游明朝

About font style in Windows OS
By the way about windows fonts that load succeed,it support to thick, thin, and italic. But CJK fonts(English name) only support Bold and Thin ,Regular only.

It seems that many type styles don't work.
Bahmschrift font (Bold and Regular only OK, Other styles are faild, For example, Light , Semibold , Bold Condense etc...)

So, I decided to look up the style names used in many fonts.
Typeface name keywords list: (Note: These are names from font selector's font list):
Code:
Regular
Regular-Mono
Oblique
Italic
UltraLight
UltraLight Italic
Thin
Thin Italic
Light
Light Italic
Light SemiCondensed
Light Condensed
Light Oblique
Light Extended
Medium
Medium Italic
Medium Oblique
Bold
Bold Slanted
Bold Italic
Bold Inclined
Bold Oblique
Bold SemiCondensed
Bold Condensed
Bold Condensed Italic
Bold Cond
Bold Cond Italic
Heavy
Heavy Italic
Heavy Oblique
Black
Black Condensed
Black Italic
Black Oblique
Black Extended
Condensed
Condensed Light
Condensed Italic
Condensed Medium
Condensed Bold
Condensed ExtraBold
Condensed Black
Demi
Demibold
DemiBold
DemiBold Italic
Semi
Semilta
Semibold
SemiBold
SemiBold Condensed
SemiBold SemiCondensed
SemiBold Italic
SemiLight
SemiLight Condensed
SemiLight SemiCondensed
SemiCondensed
Bold Italic
UltraBold
Ultra
Ultra Bold
UltraLight
Ultra Light
Ultra Light Italic
Wide
Slanted
ExtraLight
Extralight
ExtraBold
ExtraBlack
Extended
Normal
Roman
Book
Bookit
Bookita
Book Italic
Book Oblique
Gothic Regular
Gothic-Regular
HouseScript
HouseScript Semibold
Embellishments One LET Plain
Text
regular
light
medium
bold
heavy
black
thin
Plain
Inclined
Inline
Solid
Ornaments
08 Regular
12 Regular
08 Italic
12 Italic
AIISC
W0
W1
W2
W3
W4
W5
W6
W7
W8
W9
EL
L
M
R
B
H
U
Oultline 8 Dot
Pinpoint 6 Dot
Chancery

Windows Font Selector Style(Japanese )
Code:
レギュラー
イタリック
ボールド
ボールド イタリック

中 斜体
細字
細字 斜体
標準
やや狭い
やや太い
狭い 斜体
狭い 太字 斜体
中細
中細 斜体
中太
中太 斜体
極太 斜体
極太
極太 斜体
--------
tkbd


RE: Error,after tried creating 3Dtext. Wings3D v2.2.6 - dgud - 06-05-2020

I can only support some font weights.
The rest are chosen between the supported, thin, normal, bold, so that is not a bug.

I still don't have a font that freezes wings, or know where to download a font that causes such issues,
so I can't fix it.