Inbuilt fontengine problem with certain ttf files
Posted: Sat Jun 03, 2017 2:36 pm
It seems to me that certain TTF fonts are not compatible with the inbuilt font engine.
Here is an example:
https://drive.google.com/file/d/0ByABbA ... p=drivesdk
When I want to open it like this:
openfont(1,"ram:symbpron.ttf",12,{Engine=#fontengine_inbuilt})
it fails to open a file: symbpron.ttf.font
Here is an excerpt from a snoopy log:
00255 : hollywood : FAIL = GetVar("codeset_default",0x6134A2C8,256,0x00000100) [248uS]
00256 : hollywood : FAIL = Open("ram:symbpron.ttf.font",OLD) = [0x00000000] [37uS]
00257 : hollywood : FAIL = GetVar("codeset_default",0x6134A2C8,256,0x00000100) [95uS]
00258 : hollywood : FAIL = Open("Fonts/ram:symbpron.ttf.font",OLD) = [0x00000000] [2155269uS]
00259 : hollywood : FAIL = GetVar("codeset_default",0x6134A2C8,256,0x00000100) [623uS]
00260 : hollywood : FAIL = Open("FONTSsymbpron.ttf.font",OLD) = [0x00000000] [118uS]
According the OS4 TypeManager this font has a Windows Symbol encoding instead of Windows Unicode which other fonts has. Whatever that means...
I need to traverse all fonts from a selected drawer, so I should use this way to open fonts.
Here is an example:
https://drive.google.com/file/d/0ByABbA ... p=drivesdk
When I want to open it like this:
openfont(1,"ram:symbpron.ttf",12,{Engine=#fontengine_inbuilt})
it fails to open a file: symbpron.ttf.font
Here is an excerpt from a snoopy log:
00255 : hollywood : FAIL = GetVar("codeset_default",0x6134A2C8,256,0x00000100) [248uS]
00256 : hollywood : FAIL = Open("ram:symbpron.ttf.font",OLD) = [0x00000000] [37uS]
00257 : hollywood : FAIL = GetVar("codeset_default",0x6134A2C8,256,0x00000100) [95uS]
00258 : hollywood : FAIL = Open("Fonts/ram:symbpron.ttf.font",OLD) = [0x00000000] [2155269uS]
00259 : hollywood : FAIL = GetVar("codeset_default",0x6134A2C8,256,0x00000100) [623uS]
00260 : hollywood : FAIL = Open("FONTSsymbpron.ttf.font",OLD) = [0x00000000] [118uS]
According the OS4 TypeManager this font has a Windows Symbol encoding instead of Windows Unicode which other fonts has. Whatever that means...
I need to traverse all fonts from a selected drawer, so I should use this way to open fonts.