Ошибка processing non unicode truetype font

Содержание

  1. Kohan 2 error processing non unicode truetype font
  2. Kohan 2 error processing non unicode truetype font
  3. Kohan 2 error processing non unicode truetype font
  4. Kohan 2 error processing non unicode truetype font

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

Very Sensitive Case and Space Sensitive
1. Run Command Promp as Administration

(Type in Command promp site, just copy it (‘w’)/ )
2. takeown /f C:WindowsFontsmsgothic.ttc
3. icacls C:WindowsFontsmsgothic.ttc /grant username:f
NB : The name of Username should not Capital

(Delete Manual)
4. Open My Computer C:WindowsFonts, dan delete msgothic.ttc

How to Know your Username?
1. Open Taskbar
2. Open Users Tab, That’s yours Username

This Solution is work for me and this is the summary solution for this Discussions link that has been provided, Thank You:)

Very Sensitive Case and Space Sensitive
1. Run Command Promp as Administration

(Type in Command promp site, just copy it (‘w’)/ )
2. takeown /f C:WindowsFontsmsgothic.ttc
3. icacls C:WindowsFontsmsgothic.ttc /grant username:f
NB : The name of Username should not Capital

(Delete Manual)
4. Open My Computer C:WindowsFonts, dan delete msgothic.ttc

How to Know your Username?
1. Open Taskbar
2. Open Users Tab, That’s yours Username

This Solution is work for me and this is the summary solution for this Discussions link that has been provided, Thank You:)

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Я пытаюсь добавить собственный шрифт в jsPDF. Я преобразовал свой файл в base64 и сделал следующее:

doc.addFileToVFS("font/rajdhani-regular-webfont.woff", base64enc);

Где base64enc — это строка в кодировке base 64

Затем добавляю шрифт следующим образом:

doc.addFont('font/rajdhani-regular-webfont.woff', 'rajdhani', 'normal');

doc.setFont('rajdhani');

Однако я продолжаю получать следующую ошибку

[Error] jsPDF PubSub Error – "No unicode cmap for font" – Error: No unicode cmap for font — jspdf.min.js:9068
Error: No unicode cmap for font — jspdf.min.js:9068registerTTF — jspdf.min.js:9068i — jspdf.min.js:9027:86open — jspdf.min.js:9032(anonymous function) — jspdf.min.js:6031publish — jspdf.min.js:308yt — jspdf.min.js:729:166addFont — jspdf.min.js:1286callme — freport.php:500onclick — freport.php:100
    publish (jspdf.min.js:29:5989)
    yt (jspdf.min.js:29:18435)
    addFont (jspdf.min.js:29:33701)
    callme (freport.php:500)
    onclick (freport.php:100)

Я не знаю, почему это происходит.

3 ответа

Я тоже боролся, но наконец нашел, как это сделать!

Как упоминалось, здесь есть конвертер шрифтов, созданный jsPDF Участники, которых вы можете найти здесь.

Сначала загрузите сюда свой шрифт, а затем введите его название. Он сгенерирует JS-файл, который затем вам нужно будет включить в свой проект. Если хотите, это может быть ваша папка js.

И как только он окажется в вашей папке, добавьте этот тег скрипта в свой index.html (или любой другой html-файл, для которого вам нужен jsPDF).

<script src="./fontName.js"></script>

Теперь, когда у вас есть шрифт, автоматически добавленный в jsPDF Api для вас с этим файлом, вы можете продолжить и удалить две строки ниже из вашего кода .

doc.addFileToVFS("font/rajdhani-regular-webfont.woff", base64enc);
doc.addFont('font/rajdhani-regular-webfont.woff', 'rajdhani', 'normal');

Как только вы это сделаете, просто проверьте файл, который вы загрузили из конвертера, и вы должны увидеть в самом низу название вашего шрифта в втором параметре приведенного ниже кода .

this.addFont('fontFile.woff', 'THIS IS FONT NAME' , '.......');

Скопируйте это имя. Скажем, его «раджани» для этого примера. Таким образом, вы просто помещаете это перед любым текстом, который вы создаете в экземпляре jsPDF (doc).

doc.setFont('rajdhani');

Вы можете просто проверить это ниже

/* 
"p" for portrait page orientation
"pt" for points. default is mm
"a4" is page size 
*/
var doc = new jsPDF("p","pt","a4"); 
doc.setFont('rajdhani');
doc.text('This is a test', 20,20);
doc.save('filename.pdf');

Теперь вы должны увидеть PDF-файл с левым 20px верхним полем 20px с надписью «Это тест» с вашим стилем шрифта.

Надеюсь это поможет :)


3

Tunc Gerdan
27 Авг 2019 в 14:37

Также для пользователей модуля ES6 шаги очень похожи.

Если вы здесь ищете решение для Ionic 4 angular typescript , как и я, ниже представлено решение, которое сработало для меня!

Сначала вам нужно установить пакет через npm, как показано ниже.

npm install jspdf@latest --save

После этого, как упоминалось в моем предыдущем ответе, есть конвертер шрифтов, созданный jsPDF Contributers, который вы можете найти на здесь. Используйте это, чтобы загрузить файл шрифта и включить его в свой проект в удобное для ссылки место внутри файла TS, чтобы он мог находиться, например, в той же папке, что и файл ts.

-fontname-style.js // <<--- Here (This is the file you downloaded from converter)
-custom.page.module.ts
-custom.page.html
-custom.page.scss
-custom.page.spec.ts
-custom.page.ts

Теперь в свой custom.page.ts импортируйте следующее:

import * as jsPDF from 'jspdf';
import './fontname-style.js';

//OPTIONAL (Only import if you want to use autotable)
import 'jspdf-autotable';
import { autoTable as AutoTable } from 'jspdf-autotable';

Как только вы это сделаете, просто проверьте файл, который вы загрузили из конвертера, и вы должны увидеть в самом низу ваше имя шрифта во втором параметре кода ниже.

This.addFont (‘fontFile.ttf’, ‘fontName’, ‘…….’);

Теперь вы можете создать такую ​​функцию внутри custom.page.ts ;

//custom.component.ts or custom.page.ts etc.
exportPDF(){
  var doc = new jsPDF("p","pt","a4"); // You can set your own  paramaters
  doc.setFont('fontName');
  doc.text('This is a test', 20,20); // You can set your own margins
  return doc.save('filename.pdf');
}

Теперь вы должны увидеть PDF-файл с левым 20px верхним полем 20px с надписью «Это тест» с вашим стилем шрифта :)

ДОПОЛНИТЕЛЬНЫЙ ПЛАГИН — AutoTable для jsPDF

Если вы хотите использовать плагин autotable для jsPDF, установите следующий пакет из npm.

npm install jspdf-autotable@latest --save

После установки добавьте эти два импорта в свой custom.page.ts .

import 'jspdf-autotable';
import { autoTable as AutoTable } from 'jspdf-autotable';

Вы можете создать данные из столбцов и заголовков, если хотите

И внутри функции exportPDF (), которую мы создали перед добавлением этих строк;

//custom.component.ts or custom.page.ts etc.
exportPDF(){
  var doc = new jsPDF("p","pt","a4");
  doc.setFont('fontName');
  doc.text('This is a test', 20,20); // <-- Remove this line
  ((doc as any).autoTable as AutoTable)({
    head: [['Name', 'Email', 'Country']], // <-- Table headers
    body: [                               // <-- Table body
            ['David', 'david@example.com', 'Sweden'],
            ['Castille', 'castille@example.com', 'Norway'],
            // ...
          ],
    styles: { font: "fontName" } /* <-- This is for the font to work in your 
  table */
  });

  return doc.save('filename.pdf');
}

Теперь у вас должен получиться pdf с таблицей внутри вашего шрифта :)

Надеюсь, это кому-то поможет.


0

Tunc Gerdan
27 Авг 2019 в 14:49

Я столкнулся с той же проблемой и выполнил шаги, которые объяснил @TuncGerdan. Мои ошибки были устранены, но в консоли появляется следующее предупреждение.

jspdf.min.js:29 Unable to look up font label for font 'font name', 'normal'. Refer to getFontList() for available fonts.

Когда я получаю список шрифтов с помощью doc.getFontList (), я вижу пользовательский шрифт, который я включил в список.

Может ли кто-нибудь помочь с этим.


0

B0se
20 Сен 2019 в 16:21

Zartu on 2/16/2020 9:07 PM
· Permalink
· Report

I installed Kohan 2 from original CD on my Windows 10 Home 64-bit laptop, but every time i open it, I get this message:
Error: processing non-unicode TrueType font

The game starts up show the start screen (Kohan II — KIngs of War; loading Data 1.1.4.0 K2) and the shuts down giving useless error message from Win10.

I found out it has something to do with Kohan 2 using their own font or something like that?
I have found but not testet a fix to the two earlier Kohan games, since I just played them both on my old laptop (R.I.P).

I have also tried to install a cracked version i found, but for some reason my Kohan/heroes could not get higher to a higher level then right below enlightenment 349/350 (level 2 or 3), and started from level 0 on every mission.

I hope someone can help me find a fix or a solution so I can play my game and not let Microsoft ruin yet another great game.
Please make any help detailed, Thanks

Get the Reddit app

Scan this QR code to download the app now

Or check it out in the app stores

Содержание

  1. Kohan 2 error processing non unicode truetype font
  2. Kohan 2 error processing non unicode truetype font
  3. Kohan 2 error processing non unicode truetype font
  4. Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

Very Sensitive Case and Space Sensitive
1. Run Command Promp as Administration

(Type in Command promp site, just copy it (‘w’)/ )
2. takeown /f C:WindowsFontsmsgothic.ttc
3. icacls C:WindowsFontsmsgothic.ttc /grant username:f
NB : The name of Username should not Capital

(Delete Manual)
4. Open My Computer C:WindowsFonts, dan delete msgothic.ttc

How to Know your Username?
1. Open Taskbar
2. Open Users Tab, That’s yours Username

This Solution is work for me and this is the summary solution for this Discussions link that has been provided, Thank You:)

Very Sensitive Case and Space Sensitive
1. Run Command Promp as Administration

(Type in Command promp site, just copy it (‘w’)/ )
2. takeown /f C:WindowsFontsmsgothic.ttc
3. icacls C:WindowsFontsmsgothic.ttc /grant username:f
NB : The name of Username should not Capital

(Delete Manual)
4. Open My Computer C:WindowsFonts, dan delete msgothic.ttc

How to Know your Username?
1. Open Taskbar
2. Open Users Tab, That’s yours Username

This Solution is work for me and this is the summary solution for this Discussions link that has been provided, Thank You:)

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

  1. Дано: система в профиле, игра — Kohan 2 из сборника Kohan Warchest (с ПиратеБая, английский, лицензионный, с ключами). Устанавливается чудесно, первые две части (Kohan и Ahriman’s Gift) идут как часы, эта — стартует, показывает загрузочный экран, что-то грузит, потом вылетает с ошибкой Memory Access Violation.
    Отключение DEP путём редактирования autoexec.bat с добавлением параметра /noexecute = AlwaysOff, помогающее с некоторыми другими играми, в данном случае, как видно, не арбайтен.
    Какие могут быть другие варианты решения проблемы виоляции мемория?

  2. @Vissavald, если есть возможность проверить в Windows 7 — то могу порекомендовать DgVoodoo 2 (естественно, без гарантий; в XP он, к сожалению, не работает). Если доступна только Windows XP — то остаётся DxWnd, представляющая собой чистой воды шаманство в плане работы с разнообразными настройками.
    В Интернете по поводу этой ошибки для данной игры никаких советов, кроме отключения DEP, я тоже не нашёл.
    Но вообще это очень странно, потому что с XP (в отличие от 7, на проблемы в среде которой обычно и жалуются) она совместима официально — и, соответственно, должна там без проблем работать.

    Возможно, кстати, что дело в версии игры. Попробуй поставить какой-либо из этих патчей (если твоя версия «ниже» них). По идее, второй должен быть кумулятивным, то есть его может и хватить. Естественно, тоже без гарантий.

    Последнее редактирование: 29 май 2018

  3. Вот именно, что по идее никаких проблем не должно было быть. Семёрку второй системой ставить, если честно, совсем не хочется — просто не люблю дабл-систем, почему-то. Одно время практиковал, но крайне недолго (полгода, не больше). Утомило перегружаться туда-сюда для разных игр.
    Offtop

    Хотя мой наилюбимейший Harbinger тоже почему-то в родной для него ХР выдаёт кучу визуальных артефактов, а на Семёрке (под совместимостью) — работал как часы. Надо будет скриншотов наделать — и тоже у народа поспрошать подмоги. ДхВнд не помогает, увы.

    В WarChest последняя версия, 1.23. и ещё какие-то даже ещё циферки после точки.

    ДхВнд, кстати, не пробовал. Как-то не проассоциировал Мемори Виолейшен и его. Надо попробовать, порой выдаёт сильное колдунство там, где вовсе не ждёшь.

    Вообще, судя по инфе, разбросанной по Сети, вторая часть сама по себе довольно глючная и недоделанная. Может, какой-нибудь персональный глюк на конфигурацию…

    Последнее редактирование: 27 май 2018

  4. Можно ведь не второй системой, а на отдельном компьютере, если для него есть место.
    Я сам её не особо жалую, но в современных условиях у данной системы есть одно неоспоримое преимущество перед XP: она поддерживает DgVoodoo 2, последние версии которого позволяют запускать многие весьма глючные (уже даже в среде XP) старые игры.Такое, к сожалению, действительно бывает. У меня, например, на одном из компьютеров с XP категорически отказывается работать WarBreeds (даже с патчем), тогда как на другом компьютере с той же ОС работает без проблем.

    Кстати, может, стоит попробовать поставить игру именно с оригинального образа (1.0) и пропатчить? Вдруг так заработает?

  5. Ну, как бы у меня второй-то (первый) с Семёркой, интернетами и прочими излишествами и так есть, но он оккупирован грудой детей с мультиками и кучкой жены с сетевыми покупками…
    А покупку третьего (второго личного) я как-то не рассматриваю: в условиях волатильности рынков и нестабильности инвестиций, знаете ли…Все, смотрю, так её хвалят, прям завидки берут… Если эта диковинная ДыГыВуда запускает Warlords III DLR и Harbinger… ииии, для чего там ещё я Хрюшу держу…, не вспомнить уже — тогда можно подумать.

    Хотя Хрюшу я люблю просто так, за вид и нрав. Как-то сросся я с нею…

    У меня вот да — без проблем. Игра, конечно, Вангерам даст прикурить… :) ВЕЩЬ!Осталось пошукать англоверсию 1.0 средь липких ниточек Паутины…

  6. Harbinger, по-моему, в 7 идёт просто с «убийством Explorer’а».У меня то же самое (правда, в большей степени применительно к 98SE), но есть возможность иметь несколько компьютеров; кроме того, для меня (подчёркиваю это) не составляет особой проблемы иметь на определённых компьютерах по две системы и перезагружаться по необходимости.

    А DgVoodoo 2 действительно помогает со множеством старых игр, — это факт. И очень печально, что её автор отказался от поддержки XP.

    Но вот цветовую схему ОС она, по-моему, «ломает» везде и независимо ни от чего, поэтому лучше пользоваться выложенным на сайте fix’ом.
    Впрочем, что WarBreeds, что Harbinger, что прочее лучше обсуждать в темах по ним, конечно.Возможно (я сам не проверял), здесь как раз 1.0.

  7. Можно, видимо, и старую версию попробовать.Угу, она-то уже и качается :) ИСО-Зона — это хорошо.

  8. Не по прихоти. А потому, что для точной эмуляции всех возможностей Voodoo шейдеров 3.0 недостаточно (с эмуляцией Dreamcast, например, та же история).

  9. Не в этом случае: старая версия — которая, например, DgVoodoo 1.40+ или 1.50beta2 (и даже они друг другу не полностью тождественны в плане совместимости с конкретными играми) — предназначена ТОЛЬКО для запуска игр, поддерживающих API Glide. Какового в Kohan II, естественно, нет.
    DgVoodoo 2 же предназначен далеко не только для Glide-игр, — и в этом его огромное преимущество.

    — добавлено 27 май 2018, предыдущее сообщение размещено: 27 май 2018

    Предположу, что абсолютное большинство игроков без этой «точной эмуляции» вполне проживёт. Те же, что не проживут, скорее предпочтут играть на реальной видеокарте, а не пользоваться эмулятором. Плюс для Glide-игр есть nGlide — который, замечу, до сих пор поддерживает Windows XP.

    Меня DgVoodoo 2 интересует именно в плане старых игр с D3D и прочим, — и запускать их с помощью него в XP очень бы хотелось (потому что тогда можно было бы, прошу прощения за лексику, вообще «забить» на семёрку). Но — увы.

  10. Автор пишет, что для эмуляции как минимум D3D8 шейдеры 4.0 столь же критичны.

  11. @Vissavald, я посмотрел версию игры из первого поста на своих двух системах с десяткой и с XP — везде работает без проблем. Судя по описанию вашей ситуации, предлагаю лечить кодеки (ошибка выскакивает в момент, когда должен проиграться ролик вступительный?). Еще можно попробовать поставить драйвера на видеокарту постарше (года, 2012-го, например). А еще в папке игры в директории startup есть подозрительный файл memory.ini. Попробуйте поменять там строчку:
    use_memory_tracker = true
    на
    use_memory_tracker = false
    Может на что повлияет.

  12. Спасибо, полезно.

    Не знаю, в момент начала ролика ли выкидывает, или нет — по надписям над точечками строки загрузки слева внизу не определить, а ни миллисекунды ролика не видел пока :)

    Кстати, да, забыл упомянуть, что в memory.ini я, руководствуясь логикой, залезал, и как раз memory tracker менял. Безрезультатно, как ни странно.

    Кодеки K-Lite стоят, но — последние. Ставить старые — есть риск, что на другие игры повлияет.

    Последнее редактирование: 27 май 2018

  13. К сожалению, я не раз лично сталкивался с несоместимостью данного пакета кодеков с некоторыми играми. В качестве проверки, попробуйте удалить. Только я не помню, нужно ли дополнительно что-то еще вручную вычищать на XP. И да, играм как раз кодеки сторонние не нужны — обычно они свои с собой таскают.

    Последнее редактирование: 27 май 2018

  14. Для игр, имеющих проблемы с K-Lite, можно попробовать добавление их в «исключения» в ffdshow:
    1) Заходим в папку, куда установлен K-Lite Codec Pac (по умолчанию это папка «K-Lite Codec Pack»), затем во внутреннюю папку Configuration, после чего запускаем FFdshow Video Decoder;
    2) Выбираем слева раздел DirectShow control и ставим галочку напротив пункта «Don’t use ffdshow»;
    3) Нажимаем Edit и указываем путь к исполняемому файлу проблемной игры;
    4) Пробуем запустить игру.

  15. Поигрался с DxWnd — безрезультатно.
    Обратил внимание, что в Гифте Ахримана BinkW32.dll версия от 2009 года, а в Кохан 2 — от 2004, что странно. Скопировал более свежую библу в Кохан 2 — безрезультатно.

    Да, буду пробовать настраивать/удалять К-Лайт или ставить 1.0 и накатывать патч.

    Последнее редактирование: 29 май 2018

  16. Update: ни одна из вышеперечисленных манипуляций не работает. Ни тюнинг/удаление К-Лайта (с последующей зачисткой Revo Uninstaller’ом и Auslogics BoostSpeed’ом и перезагрузкой), ни установка 1.0 с патчем/без патча. По логу ничего не понятно, просто превышение допустимых килобайт в каких-то двух стрингах.

    В ДхВнд есть готовая конфигурация для Кохана 2, но она тоже не работает, и попытки что-то в ней интуитивно/логически поменять тоже провалились.

    Последнее редактирование: 29 май 2018

  17. Установка Вторых Коханов на чистую ХРюшу решила проблему. К-Лайт не устанавливался.

  18. А что значит «чистая» в данном контексте? Без SP? Или именно без упомянутого кодека?

  19. @kreol, а фиг его знает, К-Лайты это гадили или нет. Допсофта установлено минимум. Кодеков вообще никаких не ставилось, на звук поставил Риалтек последней подходящей для ХР версии, на видяху — последний подходящий на ХР драйвер (и в том, и в другом случае — «последний подходящий» по заявлениям разработчиков).

  20. Что же я такого установил, что она, собака такая, опять не запускается?:hmmm:

Содержание

  1. Kohan 2 error processing non unicode truetype font
  2. Kohan 2 error processing non unicode truetype font
  3. Kohan 2 error processing non unicode truetype font
  4. Kohan 2 error processing non unicode truetype font

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

I’ve uploaded some edited tgi files which fix this.
Grab the file at: Fonts.7z [drive.google.com]

Create a folder called Data and then Fonts
Extract Fonts.7z into Data/Fonts
Go into the Data/Fonts/TrueType folder.
Right-click VILLAGE.TTF and Install it.

I replaced all the MS Gothic font references with the VILLAGE font.

Very Sensitive Case and Space Sensitive
1. Run Command Promp as Administration

(Type in Command promp site, just copy it (‘w’)/ )
2. takeown /f C:WindowsFontsmsgothic.ttc
3. icacls C:WindowsFontsmsgothic.ttc /grant username:f
NB : The name of Username should not Capital

(Delete Manual)
4. Open My Computer C:WindowsFonts, dan delete msgothic.ttc

How to Know your Username?
1. Open Taskbar
2. Open Users Tab, That’s yours Username

This Solution is work for me and this is the summary solution for this Discussions link that has been provided, Thank You:)

Very Sensitive Case and Space Sensitive
1. Run Command Promp as Administration

(Type in Command promp site, just copy it (‘w’)/ )
2. takeown /f C:WindowsFontsmsgothic.ttc
3. icacls C:WindowsFontsmsgothic.ttc /grant username:f
NB : The name of Username should not Capital

(Delete Manual)
4. Open My Computer C:WindowsFonts, dan delete msgothic.ttc

How to Know your Username?
1. Open Taskbar
2. Open Users Tab, That’s yours Username

This Solution is work for me and this is the summary solution for this Discussions link that has been provided, Thank You:)

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Kohan 2 error processing non unicode truetype font

Maybe this may not be the right forum to ask this question but I could not find any help so it goes .

I have disk version of the game purchased long time ago. Try to install it in my computer (Win 8), it comes with the following error message (tried compatibility etc but never cure this disease)

ERROR: Processing non-Unicode Truetype Font

—> can anybody help me how to fix this issue?

I know this thread is very, very old, but there’re people out somewhere that need help with this.

The error is related with a Windows font named MS Gothic, and on systems like 8/8.1 and 10 you can’t delete nor rename it without giving yourself administrator’s priviledges. The easiest way to get it done is download a Linux OS and make a bootable drive with it. I used Slacko 5.7 and Rufus as my boot drive creation tool.

Later all you need to do is follow some simple instructions, restart your PC with drive plugged in, start your Linux and delete/rename a file in C:WindowsFonts named msgothic.ttc.

Boot up your Windows again and enjoy Kohan 2.

wow thank you I will try that

My best bet is it’s still conflicting with an another type of font, check out this site

If the program from link given there doesn’t work, I guess this problem is beyond my help at the moment

But not that it’s helps either, same problem occur.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Edit #2:
Ok so I managed to solve it. The problem, as many users above said lies with the Windows font «MS Gothic». Fortunately deleting the font solves the problem, without causing new ones. Unfortunately deleting it isn’t as easy as it should be. I did not use a third party program or Linux as other users suggested here, I used the command prompt. Here’s how I did it:

As described here by this post : http://www.techsupportforum.com/forums/f217/solved-geek-to-noob-translate-please-398619.html
I opened the command prompt as an administrator, and used the commands takeown and icacls on the MS Gothic file located at C:WindowsFontsmsgothic.ttc
This is where the linked post stops, but to delete the file I had to use another command prompt, since Windows thought the file was still «in use». I did so by using the command «del /f» on the msgothic.ttc file.

After executing the above 3 command prompt lines, I was able to play the game smoothly.

Источник

Я пытаюсь добавить собственный шрифт в jsPDF. Я преобразовал свой файл в base64 и сделал следующее:

doc.addFileToVFS("font/rajdhani-regular-webfont.woff", base64enc);

Где base64enc — это строка в кодировке base 64

Затем добавляю шрифт следующим образом:

doc.addFont('font/rajdhani-regular-webfont.woff', 'rajdhani', 'normal');

doc.setFont('rajdhani');

Однако я продолжаю получать следующую ошибку

[Error] jsPDF PubSub Error – "No unicode cmap for font" – Error: No unicode cmap for font — jspdf.min.js:9068
Error: No unicode cmap for font — jspdf.min.js:9068registerTTF — jspdf.min.js:9068i — jspdf.min.js:9027:86open — jspdf.min.js:9032(anonymous function) — jspdf.min.js:6031publish — jspdf.min.js:308yt — jspdf.min.js:729:166addFont — jspdf.min.js:1286callme — freport.php:500onclick — freport.php:100
    publish (jspdf.min.js:29:5989)
    yt (jspdf.min.js:29:18435)
    addFont (jspdf.min.js:29:33701)
    callme (freport.php:500)
    onclick (freport.php:100)

Я не знаю, почему это происходит.

3 ответа

Я тоже боролся, но наконец нашел, как это сделать!

Как упоминалось, здесь есть конвертер шрифтов, созданный jsPDF Участники, которых вы можете найти здесь.

Сначала загрузите сюда свой шрифт, а затем введите его название. Он сгенерирует JS-файл, который затем вам нужно будет включить в свой проект. Если хотите, это может быть ваша папка js.

И как только он окажется в вашей папке, добавьте этот тег скрипта в свой index.html (или любой другой html-файл, для которого вам нужен jsPDF).

<script src="./fontName.js"></script>

Теперь, когда у вас есть шрифт, автоматически добавленный в jsPDF Api для вас с этим файлом, вы можете продолжить и удалить две строки ниже из вашего кода .

doc.addFileToVFS("font/rajdhani-regular-webfont.woff", base64enc);
doc.addFont('font/rajdhani-regular-webfont.woff', 'rajdhani', 'normal');

Как только вы это сделаете, просто проверьте файл, который вы загрузили из конвертера, и вы должны увидеть в самом низу название вашего шрифта в втором параметре приведенного ниже кода .

this.addFont('fontFile.woff', 'THIS IS FONT NAME' , '.......');

Скопируйте это имя. Скажем, его «раджани» для этого примера. Таким образом, вы просто помещаете это перед любым текстом, который вы создаете в экземпляре jsPDF (doc).

doc.setFont('rajdhani');

Вы можете просто проверить это ниже

/* 
"p" for portrait page orientation
"pt" for points. default is mm
"a4" is page size 
*/
var doc = new jsPDF("p","pt","a4"); 
doc.setFont('rajdhani');
doc.text('This is a test', 20,20);
doc.save('filename.pdf');

Теперь вы должны увидеть PDF-файл с левым 20px верхним полем 20px с надписью «Это тест» с вашим стилем шрифта.

Надеюсь это поможет


3

Tunc Gerdan
27 Авг 2019 в 14:37

Также для пользователей модуля ES6 шаги очень похожи.

Если вы здесь ищете решение для Ionic 4 angular typescript , как и я, ниже представлено решение, которое сработало для меня!

Сначала вам нужно установить пакет через npm, как показано ниже.

npm install jspdf@latest --save

После этого, как упоминалось в моем предыдущем ответе, есть конвертер шрифтов, созданный jsPDF Contributers, который вы можете найти на здесь. Используйте это, чтобы загрузить файл шрифта и включить его в свой проект в удобное для ссылки место внутри файла TS, чтобы он мог находиться, например, в той же папке, что и файл ts.

-fontname-style.js // <<--- Here (This is the file you downloaded from converter)
-custom.page.module.ts
-custom.page.html
-custom.page.scss
-custom.page.spec.ts
-custom.page.ts

Теперь в свой custom.page.ts импортируйте следующее:

import * as jsPDF from 'jspdf';
import './fontname-style.js';

//OPTIONAL (Only import if you want to use autotable)
import 'jspdf-autotable';
import { autoTable as AutoTable } from 'jspdf-autotable';

Как только вы это сделаете, просто проверьте файл, который вы загрузили из конвертера, и вы должны увидеть в самом низу ваше имя шрифта во втором параметре кода ниже.

This.addFont (‘fontFile.ttf’, ‘fontName’, ‘…….’);

Теперь вы можете создать такую ​​функцию внутри custom.page.ts ;

//custom.component.ts or custom.page.ts etc.
exportPDF(){
  var doc = new jsPDF("p","pt","a4"); // You can set your own  paramaters
  doc.setFont('fontName');
  doc.text('This is a test', 20,20); // You can set your own margins
  return doc.save('filename.pdf');
}

Теперь вы должны увидеть PDF-файл с левым 20px верхним полем 20px с надписью «Это тест» с вашим стилем шрифта

ДОПОЛНИТЕЛЬНЫЙ ПЛАГИН — AutoTable для jsPDF

Если вы хотите использовать плагин autotable для jsPDF, установите следующий пакет из npm.

npm install jspdf-autotable@latest --save

После установки добавьте эти два импорта в свой custom.page.ts .

import 'jspdf-autotable';
import { autoTable as AutoTable } from 'jspdf-autotable';

Вы можете создать данные из столбцов и заголовков, если хотите

И внутри функции exportPDF (), которую мы создали перед добавлением этих строк;

//custom.component.ts or custom.page.ts etc.
exportPDF(){
  var doc = new jsPDF("p","pt","a4");
  doc.setFont('fontName');
  doc.text('This is a test', 20,20); // <-- Remove this line
  ((doc as any).autoTable as AutoTable)({
    head: [['Name', 'Email', 'Country']], // <-- Table headers
    body: [                               // <-- Table body
            ['David', 'david@example.com', 'Sweden'],
            ['Castille', 'castille@example.com', 'Norway'],
            // ...
          ],
    styles: { font: "fontName" } /* <-- This is for the font to work in your 
  table */
  });

  return doc.save('filename.pdf');
}

Теперь у вас должен получиться pdf с таблицей внутри вашего шрифта

Надеюсь, это кому-то поможет.


0

Tunc Gerdan
27 Авг 2019 в 14:49

Я столкнулся с той же проблемой и выполнил шаги, которые объяснил @TuncGerdan. Мои ошибки были устранены, но в консоли появляется следующее предупреждение.

jspdf.min.js:29 Unable to look up font label for font 'font name', 'normal'. Refer to getFontList() for available fonts.

Когда я получаю список шрифтов с помощью doc.getFontList (), я вижу пользовательский шрифт, который я включил в список.

Может ли кто-нибудь помочь с этим.


0

B0se
20 Сен 2019 в 16:21

инструкции

 

To Fix ([Solved] geek-controller) error you need to
follow the steps below:

Шаг 1:

 
Download
([Solved] geek-controller) Repair Tool
   

Шаг 2:

 
Нажмите «Scan» кнопка
   

Шаг 3:

 
Нажмите ‘Исправь все‘ и вы сделали!
 

Совместимость:
Windows 10, 8.1, 8, 7, Vista, XP
Загрузить размер: 6MB
Требования: Процессор 300 МГц, 256 MB Ram, 22 MB HDD

Limitations:
This download is a free evaluation version. Full repairs starting at $19.95.

[Solved] geek-controller обычно вызвано неверно настроенными системными настройками или нерегулярными записями в реестре Windows. Эта ошибка может быть исправлена ​​специальным программным обеспечением, которое восстанавливает реестр и настраивает системные настройки для восстановления стабильности

If you have [Solved] geek-controller then we strongly recommend that you

Download ([Solved] geek-controller) Repair Tool.

This article contains information that shows you how to fix
[Solved] geek-controller
both
(manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to [Solved] geek-controller that you may receive.

Примечание:
Эта статья была обновлено на 2023-02-03 и ранее опубликованный под WIKI_Q210794

Содержание

  •   1. Meaning of [Solved] geek-controller?
  •   2. Causes of [Solved] geek-controller?
  •   3. More info on [Solved] geek-controller

Meaning of [Solved] geek-controller?

[Solved] geek-controller is the error name that contains the details of the error, including why it occurred, which system component or application malfunctioned to cause this error along with some other information. The numerical code in the error name contains data that can be deciphered by the manufacturer of the component or application that malfunctioned. The error using this code may occur in many different locations within the system, so even though it carries some details in its name, it is still difficult for a user to pinpoint and fix the error cause without specific technical knowledge or appropriate software.

Causes of [Solved] geek-controller?

If you have received this error on your PC, it means that there was a malfunction in your system operation. Common reasons include incorrect or failed installation or uninstallation of software that may have left invalid entries in your Windows registry, consequences of a virus or malware attack, improper system shutdown due to a power failure or another factor, someone with little technical knowledge accidentally deleting a necessary system file or registry entry, as well as a number of other causes. The immediate cause of the «[Solved] geek-controller» error is a failure to correctly run one of its normal operations by a system or application component.

More info on
[Solved] geek-controller

РЕКОМЕНДУЕМЫЕ: Нажмите здесь, чтобы исправить ошибки Windows и оптимизировать производительность системы.

I’ve got some bad boys left on this machine can’t seem to shake.
Решено: компьютерный компьютер в Великобритании naff!

Using HP Pavilion AMD Athlon 64 NOT know how to access safely, having Roxio on it. He wiped C: drive and found virus, on motherboard, which AVG did not detect! I had numerous BSOD and a «friend» took PC away 4000+ 2.60GHz, Memory 2.00GB System 32 bit. clean and installed Vista Business.

Ok my PC is working, yet, WMP11 is asking for «codecs» and obviously cannot view anything on E drive. There is still a partition D drive, which I DO


[SOLVED] Я действительно не хочу забирать свой компьютер в команду geek

Это может вызвать шум, он пропускает письмо. Если я набираю текст, каждый раз видеоролик и прихожу сюда, чтобы обратиться за помощью. Я переустановил окна, чтобы убедиться, что это не проблема с рекламным ПО / вирусом, но это не исправить. Http://www.youtube.com/watch?v=QQaNTinDKE0

Попробуйте другую клавиатуру.

Хорошо, мой компьютер делает BIOS, не помог. Если это USB-клавиатура, попробуйте других кроликов со сжатым воздухом, но это тоже не исправить. Я понятия не имею, что происходит, поэтому я делал забавный шум, систематически, каждые три секунды. Я полностью разобрал свой компьютер и взорвал всю пыль.

Если я перемещаю свой курсор, когда возникает шум, поместите его как спереди, так и сзади.

Я вспыхнул, курсор зависает, а затем перескакивает туда, где он должен быть.


[SOLVED] Geek to Noob translate please

font selections, then re-wadding data.rwd. Post 2

The thread I found listing Dragonforge

Post 3 (answer)

Joy, joy at last! If not, will the full I hope this info helps others your attention …

Apparently it detects the modification as a copyright font directory — I tried to delete the fonts but on reboot they always return. I’ve tried extracting data.rwd, changing modify the font as the cause of the fatal error. I was never able to get this article http://www.vista4beginners.com/Chang…take-ownership. Rulycar Dragonforge

now can someone fine from there.

I’ve ordered one copy of the game anyway (XP still works), but I am this exact problem reports no solution. All ran click context menu:

http://www.sevenforums.com/tutorials…-shortcut.html

Here is the file you need to rename or delete:

Also, that person was referred to game have the same problem? Here is a link to add a ‘take ownership’ entry in the right multiplayer function between my XP and Vista machines the program terminates with a fatal error.

It plays fine on my Windows XP machine, but when I tried to test the error starting Kohan II. Kohan II asked Windows Vista for the .ttc font, and how to bypass this? Does anyone know still have no functionality. Either way, I Error processing non-unicode truetype font.

Thanks, for who might be having a similar problem. Cheers

Follow enough permission to delete the font files.

This creates an …


Solved: 2 GB USB Flash Drive (Geek Squad)

I purchased a 2 GB USB Flash drive

Try repartitioning and reformatting. On that drive, FAT rip off. What a Storage Format Tool

  What file system is the best choice.

I bought the USB drive for 11.00 dollars and when I contacted Geek squad they want me to pay 25.00 for tech support! HP USB Disk did you use? Can anyone help?

to copy stuff to my laptop from my PC.


Решено: проблема с контроллером SATA / RAID-контроллером

Я пытался ускорить мой компьютер. Огромное спасибо Мой RAID-накопитель, который может помочь с этим? Я только что сделал эту конфигурацию как обновление Windows для контроллера SATA.

It doesn’t show up in just a driver issue. Anti-Virus, Updated and Enabled

  РЕШИТЬ:

Зашел в панель управления, диспетчер устройств, контроллеры хранения и удалил все записи там, перезагрузился, и Windows переустановила их все.

Эй, ребята,

I’ve got two 500 GB HDs in RAID 0 configuration which have been working perfectly. I hoped this was

Woohoo !!!

  Мой компьютер или управление компьютером. Они содержат всю мою музыку, фильмы и не регистрируются в окнах. Теперь вернемся к компьютеру, и теперь мой RAID-диск не распознается. заранее,

c00lio.

I install it thinking nothing of it, rebooted the Is there anyone out there personal docs which I’ve collected over the years. Then, last night I get a my perfect little setup!


Решено: отсутствует сетевой контроллер контроллера ethernet PCI-модем

Кто-нибудь знает сайт, на котором я могу скачать что-то не хватает?
 


[SOLVED] Ethernet controller &amp; multimedia controller

Я собираюсь снова все, о чем я могу думать, и ничего не работает. Конечно, я потерял Привет,

Что такое марка, очень ценится. Я подключен к интернету через USB, потому что технология говорит, что я драйверы для звука и сети.

Я потерял полное обновление MS? В диспетчере устройств в разделе «Другие устройства» Ethernet-контроллеру нужна новая карта Ethernet и должна подключаться прямо через USB-порт. Билл

все, что было загружено ранее. Я попробовал компакт-диск Resource, Dell Support / Downloads, но у меня нет звука.

Any assistance & Multimedia Audio Controller are yellow question marks. Have you done ran WinXP reinstall CD. It sounds to me you just need at this point.

После того как компьютер разбился, я и модель ПК?


yellow ! on Video controller and. ? on multimedia Audio controller, RAID controller, and an unknown device

Just to add, I tried updating the run the files for the drivers(Zipped files). Thanks for drivers but windows won’t run the downloads.

Пожалуйста помоги:
I can’t get this computer to any help. I have 7-Zip to open them.


Драйверы для Edge s430? Ethernet-контроллер, сетевой контроллер, контроллер PCI-связи …

Download Thinkvantage System Update, it should pull the necessary that the PCI Simple Communication Controller still isn’t installed. I tried to install windows 7 ultimate (sp1), but the drivers for  Ethernet-Controller, Network-Controller, Manager now work properly. But in the device manager you can see OSfixes, all available drivers. Also you can see an unknown device in the device manager (Hardware ID: ACPILEN0068 *0068).

С hdd и обменялся hdd с помощью ssd. И последнее, но не менее важное: Power Manager не распознает решение. Ultranav и Power драйверы из центральной базы данных для вашей машины.

Другая проблема заключается в том, что после установки Ultranavdriver я не смог использовать драйверы на hdd в папке c: swtools drivers.

I installed all the IDs: PCIVEN_8086&DEV_1E3A&SUBSYS_21FC17AA&REV_04PCIVEN_8086&DEV_1E3A&SUBSYS_21FC17AAPCIVEN_8086&DEV_1E3A&CC_078000PCIVEN_8086&DEV_1E3A&CC_0780  

Решено!

Hi!I bought the s430 yesterday and PCI-communications controller and fingerprint sensor are missing, I can’t find them on the support page. Go the preinstalled windows, everything works. Does anyone know what’s the problem? edit: I found most storage battery, the computer tells me there’s no battery installed.

Аппаратная сенсорная панель больше, трекпойнт все еще работал, после того, как …


Помогите не-Geek?

I’m including as much of the technical info preference for all hyperlinks to be opened with IE. Now go back to your mail and click a link. Check the box that says «IE should IE. Close problem, I just need help to fix it.

Браузер Yahoo больше не будет работать без файлов — это просто мусор в вашей системе.

3. If it no longer works, its overwritten my preference for IE. But that’s If you can, go to Control Panel, Add-Remove help me.

Нажмите на другие программы, кроме MSIE (например, не-geek.

2. Ближайшие работы, расскажите нам. Другой вопрос.)

Добро пожаловать, если вы хотите, чтобы IE был браузером по умолчанию. Если эти программы и удалить YBrowser, который больше не работает. Сначала мне нужно знать, как сбросить мои, как я знаю:

Windows 98

IE 6

Outlook Express 6

  1. I am having a problem opening hyperlinks check to see …» Click Apply and OK.

Secondly, is there any way in the future to a valid userID/password which I don’t have anymore. It should Programs tab. If it doesn’t work, tell us.

(Next, we have to avoid being taken hostage by preferences I don’t want? Now re-open IE and answer Yes when it asks open in IE.

Откройте IE и в разделе Инструменты в

Кто-нибудь, пожалуйста, поговорите с вами о том, чтобы получить лучший браузер, чем IE. Я думаю, что знаю, что вызвало следующие строки меню, нажмите «Свойства обозревателя». Я думаю, что это как-то IE.


Geek It Til It MHz?

Why?!? Let’s get folding here people even if you in some other socket 7’s [электронная почта защищена] Я также использую компьютер пропусков, который является Dell Optiplex110, работающим на @733MHz fsb133 256MB SDRAM CL333. Я сам являюсь владельцем клона Intel Celery @ the blazing MHz 601 256MB fsb100.

Может, даже хэши могут даже бросить слишком низко ???

Приходите на мои соплеменники и только 70? только один компьютер помогает.

  Guess I’ll fire up the ole Packard Please???

Долина

  Только 70, что [электронная почта защищена] тип папки народы!?! Справка Bell 730 200MHz fsb66 max ОЗУ 64MB? У нас в это время 211 нас!


Что за выродка?

Every time I reply to an e-mail in outlook I get this xp home. I’m running (~) which show as a file on my desktop. (nothing in it). Thanx—Pedro

Go Feed Тина !!!

  Петр,

Посмотрите, похоже ли это, http://www.pchell.com/support/tildefile.shtml

Стив


выродка в нужде

Запуск окон BTW.

  Hi

Да, попробовать DVD также хочу создать резервную копию моей коллекции, любые предложения? И, как я уже сказал, если он доцент туда или здесь не разрешен, спасибо в любом случае. Очень признателен! Кто-нибудь знает / имеет ссылки на хорошую, удобную бесплатную программу для копирования DVD-дисков для сохранения фильмов на вашем HD-видео.

хорошо, не знаю, идет ли это здесь, или даже если вы, ребята, Decrypter, Handbrake или DVD Shrink

  Я только что получил новый 32, чтобы этот вопрос прошел, но я дал ему шанс. Я хочу смотреть фильмы на эту тему, но i-дюймовый HD-монитор для моего компьютера.


Не-geek нуждается в помощи

Help! Now, I am not able to Now, I am not able to damned «Warning: your computer infected» popups from AntiSpyMaster. I need something that will wipe your computer infected» popups from AntiSpyMaster.

и продолжает пытаться заставить меня заплатить за его очистку. это excrescense от моего Dell как можно скорее. Thanx,

WWM

Цитата:

Сообщение от Waltermatera

Я продолжаю получать их и продолжаю пытаться заставить меня заплатить за его очистку. Мне нужно что-то, что вытереть Help!

Это должен быть вирус, потому что он вообще не исчезнет из программы. Это должно быть вирусом, потому что он не исчезнет из-за этого моего Dell ASAP.

I keep getting these damned «Warning: program, at all, in any way.


мама не нуждается в помощи


Не выродка

I don’t know how to «image» and I am not Welcome

  Okay, I should have set of installation disks to reinstall your system. I read on another post that a recovery «HD521-2W» from my HP Pavilion 2105. OH and read it before, I know.

I read on a thread that I should «image» a power outage. Thanks in advance for anyone who helps.

  Насколько я знаю, что я сейчас? Я писатель, и потерять что-то травматично. Большая часть моей информации резервируется, но диск может позволить мне войти в дисковод.

Привет … Я получил сообщение об ошибке все еще под гарантии. Это произошло после ошибки жесткого диска, и вам придется заменить ваш HD. Вам нужно будет узнать, какой новый диск купить или где его купить. Но что делает мой диск после установки нового жесткого диска.

Ваш ноутбук


нужна помощь выродка

If you don’t plan on ever using a 2nd video can add a second card to take advantage of the SLI on the motherboard. Hard drive: Personally, I’m not NEC or Samsung 18x DVDRW’s. Hd2k

Oh, and I experience with the LiteOn 20x DVDRW’s. Personally, I like the with Seagate.

Personally, I’d wait 6 months don’t like Vista. I am reusing my case, they don’t burn DVD’s properly; don’t read multi-session burns, etc. Remember what a nightmare XP to know if I made compatible and good choices. Go have a budget of less than $800.

But that’s warranty right now: 5 years. I have picked out the following and would like (8 channel) so there’s no need for the sound card. Maybe or a year to install Vista. I am a graphic artist and

Go with an Nvidia card in the same price range, that way you just me. About 40% I’ve had to return due to various problems: you don’t….. They have the best cost less. Sound Card: the motherboard has 7.1 digital audio built in a nightmare.

DVDRW: I’ve had a bit of was when it first came out? It really was regular DVD drive, and 5.1 speakers.

Я решил построить новую систему, но это помогает! И они в первый раз выбрали мои собственные кусочки и части.

карты, получить другую материнскую плату и сэкономить $$$$. Надеюсь, большой поклонник WD.


Решено: Решено: требуется стандартный двухканальный контроллер PCI IDE!

См. Прилагаемый драйвер. благодаря

  .zip bmp файл. Где я могу


i’m a geek wannabe!!

But i didn’t format my hard drive i just played the disk straight from my router via usb( which still doesn’t work) so i installed that. I have gone can’t run anything elso while being on limewire. My pc is running extremly slow and i scanned every thing. Adaware and virused

«my computer» does this mean i have two o/s saved on my hard drive?? I think i had windows 98 and i needed 98se to install through ms config.. I have tried to format my h/d but i can’t find the option in the bios screens.


Подразделение Geek

Можете ли вы загружать компьютер при попытке удалить вирус. Черный экран при включении, но вы уверены, что Geek Squad удалил операционную систему на вашем компьютере? Привет agraysa,

Форматирование и переустановка операционной системы должны вернуть вас в безопасный режим?

Geek Squad удаляет мою операционную систему, нет диска восстановления.


Я пытаюсь отобразить символы Unicode из шрифта Wingdings (это шрифт Unicode TrueType, поддерживающий только символьную кодировку).
Он правильно отображается в моей системе Win7 / 64 с использованием соответствующих региональных настроек ОС:

  • Форматы: русский
  • Расположение: Россия
  • Язык системы (язык AKA для приложений, не поддерживающих Юникод): английский

Но если я переключаю язык системы на русский, символы Юникода с кодами> 127 отображаются неправильно (заменяются полями).

Мое приложение создано как использующее Unicode Charset в Visual Studio, оно вызывает только функции Unicode Windows API.

Также я отметил, что некоторые приложения Windows также неправильно отображают такие символы с помощью символьных шрифтов (Symbol, Wingdings, Webdings и т. Д.), Например Notepad, Beyond Compare 3. Но приложения WordPad и MS Office не затрагиваются.

Вот минимальный фрагмент кода (очистка ресурсов пропущена для краткости):

LOGFONTW lf = { 0 };
lf.lfCharSet = SYMBOL_CHARSET;
lf.lfHeight = 50;
wcscpy_s(lf.lfFaceName, L"Wingdings");

HFONT f = CreateFontIndirectW(&lf);

SelectObject(hdc, f);

// First two chars displayed OK, 3rd and 4th aren't (replaced with boxes) if
// Non-Unicode apps language is NOT English.
TextOutW(hdc, 10, 10, L"x7dx7ex81xfc");

Итак, вопрос в том, почему адские языковые настройки не-Unicode-приложений влияют на Unicode-приложения?

И какой правильный (и самый простой) способ отображения SYMBOL_CHARSET шрифты вне зависимости от локали системы ОС?

4

Решение

Основной причиной проблемы является то, что шрифт Wingdings на самом деле не-Unicode шрифт. Он частично поддерживает Unicode, поэтому некоторые символы по-прежнему отображаются правильно. Увидеть @Adrian McCarthyОтвет для деталей о том, как это, вероятно, работает под капотом.

Также см. Больше информации здесь: http://www.fileformat.info/info/unicode/font/wingdings
и здесь: http://www.alanwood.net/demos/wingdings.html

Итак, что мы можем сделать, чтобы избежать таких проблем? Я нашел несколько способов:

1. Быстрый & грязный

Вернуться к ANSI-версии API, а @ user1793036 предложил:

TextOutA(hdc, 10, 10, "x7dx7ex81xfc"); // Displayed correctly!

2. Быстрый & чистый

Используйте специальный диапазон Unicode F0 (Частная зона использования) вместо кодов символов ASCII. Это поддерживается Wingdings:

TextOutW(hdc, 10, 10, L"xf07dxf07exf081xf0fc"); // Displayed correctly!

Чтобы выяснить, какие символы Unicode на самом деле поддерживаются шрифтом, можно использовать некоторую программу просмотра шрифтов, например, dp4 Font Viewer

3. Медленный & чистый, но общий

Но что делать, если вы не знаете, какие символы должны отображаться и какой шрифт будет использоваться? Вот наиболее универсальное решение — рисовать текст глифами, чтобы избежать нежелательных переводов:

void TextOutByGlyphs(HDC hdc, int x, int y, const CStringW& text)
{
CStringW glyphs;

GCP_RESULTSW gcpRes = {0};
gcpRes.lStructSize = sizeof(GCP_RESULTS);
gcpRes.lpGlyphs = glyphs.GetBuffer(text.GetLength());
gcpRes.nGlyphs = text.GetLength();

const DWORD flags = GetFontLanguageInfo(hdc) & FLI_MASK;
GetCharacterPlacementW(hdc, text.GetString(), text.GetLength(), 0,
&gcpRes, flags);
glyphs.ReleaseBuffer(gcpRes.nGlyphs);

ExtTextOutW(hdc, x, y, ETO_GLYPH_INDEX, NULL, glyphs.GetString(),
glyphs.GetLength(), NULL);
}

TextOutByGlyphs(hdc, 10, 10, L"x7dx7ex81xfc"); // Displayed correctly!

Заметка GetCharacterPlacementW() использование функции. По неизвестной причине похожая функция GetGlyphIndicesW() не будет работать, возвращая «неподдерживаемые» фиктивные значения для символов> 127.

5

Другие решения

Вот что я думаю происходит:

  1. Шрифт Wingdings не имеет отображений Unicode (таблица cmap?). (Вы можете увидеть это, используя charmap.exe: Character set выпадающий контроль недоступен.)

  2. Я думаю, что для шрифтов без сопоставления Unicode Windows предполагает, что это зависит от параметра «Язык для приложений, не поддерживающих Юникод».

  3. Когда это английский, Windows (вероятно) использует кодовую страницу 1252, и все значения отображаются на себя.

  4. Когда это русский язык, Windows (вероятно) использует кодовую страницу 1251, а затем пытается переназначить их.

  5. 'x81' значение в кодовой странице 1251 отображается на U+0403, который явно не существует в шрифте, так что вы получите коробку. Точно так же, 'xFC' карты для U+044C,

Я предположил, что если вы использовали ExtTextOutW с ETO_GLYPH_INDEX Отметим, что Windows вообще не будет пытаться интерпретировать значения и просто обрабатывать их как глиф-индексы в шрифте. Но это предположение неверно.

Тем не менее, есть еще один флаг под названием ETO_IGNORELANGUAGE, который зарезервирован, но, эмпирически, похоже, решил проблему.

4

  • Ошибка process1 initialization failed windows 10
  • Ошибка precondition failed version has no sources сохранить отправить на модерацию удалить
  • Ошибка process initialization failed
  • Ошибка pre на котле будерус
  • Ошибка process has locked pages