Giter VIP home page Giter VIP logo

Comments (9)

nekonomicon avatar nekonomicon commented on August 23, 2024 1

Вообще все тулзы из HLSDK желательно портировать под *nix.

from hlsdk-portable.

a1batross avatar a1batross commented on August 23, 2024
                        // Only draw printable characters, of course
-                       if ( isprint( c ) && c <= 127 )
+                       //if ( isprint( c ) && c <= 127 )

Почему ты закомментировал isprint? Такой же код и в новом CreateProportionalConsoleFont.

from hlsdk-portable.

porloc avatar porloc commented on August 23, 2024

потому что isprint работает только с латиницей и символы локализации он не пропускает.

from hlsdk-portable.

porloc avatar porloc commented on August 23, 2024

это проверка там излишняя потому что все коды непечатываемых-управляющих символов находятся до 32 и мы их так и так пропускаем, потому что начинаем печатать с 32 символа.

from hlsdk-portable.

porloc avatar porloc commented on August 23, 2024

круто, теперь мой код на гитхаб

from hlsdk-portable.

mittorn avatar mittorn commented on August 23, 2024

У меня это сгенерировало шрифт в cp1252

from hlsdk-portable.

mittorn avatar mittorn commented on August 23, 2024

Так же в репе нет cmdlib без которого невозможно скомпилировать этот код. Желательно конечно сделать новый makefont на основе шрифтрендера mainui_cpp с подобной настройкой. Сделал шрифт для маленького экрана (128x160) - так пришлось патчить выходной файл чтобы убрать лишние пиксели по бокам, откалибровать высоту

from hlsdk-portable.

mittorn avatar mittorn commented on August 23, 2024

makefont можно сделать из менеджера шрифтов. fnt лумп состоит из структуры qfont и bmp данных

from hlsdk-portable.

mittorn avatar mittorn commented on August 23, 2024

Только там ограничение на ширину в 256. То есть придётся ограничить ширину атласа в 256

from hlsdk-portable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.