Содержание
- Kohan 2 error processing non unicode truetype font
- Kohan 2 error processing non unicode truetype font
- Kohan 2 error processing non unicode truetype font
- 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.
Источник
Во-первых, феномен
Warning: Your console font probably doesn't support Unicode. If you experience s
trange characters in the output, consider switching to a TrueType font such as C
onsolas!
====================================
Полный
D:PythonProjectpython3-webapp-Suwww>git add .
D:PythonProjectpython3-webapp-Suwww>git commit -m "Python Foundation - День 11 - Напишите день
Страница Жиджиджи
[master b98d0cb] Python»ù´¡-Day 11 - ±àдÈÕ־´´½¨ҳ
11 files changed, 6 insertions(+), 6 deletions(-)
Warning: Your console font probably doesn't support Unicode. If you experience s
trange characters in the output, consider switching to a TrueType font such as C
onsolas!
D:PythonProjectpython3-webapp-Suwww>git push -u origin master
Во-вторых, изменить
Атрибут Окна CMD, щелкните правой кнопкой мыши «Новый корпус песни»

В-третьих, результаты модификации
Предупреждение исчезло
D:PythonProjectpython3-webapp-Suwww>git commit -m «Ничего теста»
On branch master
Your branch is up to date with 'origin/master'.
D:PythonProjectpython3-webapp-Suwww>git push -u origin master
Everything up-to-date
Branch 'master' set up to track remote branch 'master' from 'origin'.
Я пытаюсь отобразить символы 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
Другие решения
Вот что я думаю происходит:
-
Шрифт Wingdings не имеет отображений Unicode (таблица cmap?). (Вы можете увидеть это, используя charmap.exe:
Character setвыпадающий контроль недоступен.) -
Я думаю, что для шрифтов без сопоставления Unicode Windows предполагает, что это зависит от параметра «Язык для приложений, не поддерживающих Юникод».
-
Когда это английский, Windows (вероятно) использует кодовую страницу 1252, и все значения отображаются на себя.
-
Когда это русский язык, Windows (вероятно) использует кодовую страницу 1251, а затем пытается переназначить их.
-
'x81'значение в кодовой странице 1251 отображается наU+0403, который явно не существует в шрифте, так что вы получите коробку. Точно так же,'xFC'карты дляU+044C,
Я предположил, что если вы использовали ExtTextOutW с ETO_GLYPH_INDEX Отметим, что Windows вообще не будет пытаться интерпретировать значения и просто обрабатывать их как глиф-индексы в шрифте. Но это предположение неверно.
Тем не менее, есть еще один флаг под названием ETO_IGNORELANGUAGE, который зарезервирован, но, эмпирически, похоже, решил проблему.
4
Я пытаюсь добавить собственный шрифт в 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
This test is done by the function warn_if_raster_font in compat/winansi.c. This uses the Win32 API GetCurrentConsoleFontEx to find the font in use by the console attached to the current output stream. This test should always be correct on Windows Vista and above. On Windows XP it has to resort to looking in the registry for the current default console font. So possibly you are on XP and while you have configured the shortcut for the console you are using, the default setting remains configured to use a non-unicode font.
If not, you might try compiling the following which uses roughly the same code and see what it prints out. Provided the output contains tt: 4 we would expect the corresponding git code to properly detect your console font as truetype.
#define STRICT
#define WINVER 0x0600
#define _WIN32_WINNT 0x600
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#ifdef __MINGW32__
typedef struct _CONSOLE_FONT_INFOEX {
ULONG cbSize;
DWORD nFont;
COORD dwFontSize;
UINT FontFamily;
UINT FontWeight;
WCHAR FaceName[LF_FACESIZE];
} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX;
#endif
typedef BOOL (WINAPI *PGETCURRENTCONSOLEFONTEX)(HANDLE, BOOL,
PCONSOLE_FONT_INFOEX);
int
_tmain(int argc, TCHAR *argv[])
{
PGETCURRENTCONSOLEFONTEX pgccf;
pgccf = (PGETCURRENTCONSOLEFONTEX)
GetProcAddress(GetModuleHandleW(L"kernel32.dll"),
"GetCurrentConsoleFontEx");
if (pgccf == NULL) {
_tprintf(_T("error: failed to get function pointern"));
} else {
HANDLE console;
CONSOLE_FONT_INFOEX cfi;
cfi.cbSize = sizeof(cfi);
console = GetStdHandle(STD_OUTPUT_HANDLE);
if (!pgccf(console, 0, &cfi)) {
_tprintf(_T("error: failed to get console infon"));
} else {
_tprintf(_T("font %08x tt:%d"), cfi.FontFamily,
(cfi.FontFamily&TMPF_TRUETYPE));
wprintf(L" %s", cfi.FaceName);
_tprintf(_T("n"));
}
}
return 0;
}