-
Content Count
1572 -
Joined
-
Last visited
-
Days Won
42
-
Yes. Same Consolas font in two different editors. The new VS Code, and the old IDE. I get it. I wonder - do you and I actually have the same Consolas font file? Mine has Greek and Cyrillic, but not Thai and Arabic. Edit: Original spec doesn't seem to include these either: https://docs.microsoft.com/en-us/typography/font-list/consolas Could you attach that .pas file, please - so that I can see how it looks in my IDE?
-
Or, Åström (U+00C5 U+0073 U+0074 U+0072 U+00F6 U+006D) which is using the correct Unicode chars, i.e. not built from composites - which we know is not handled for monospaced fonts in the IDE.
-
@TiGü The IDE editor supports Unicode, but most fonts do not have every Unicode character for every language defined, hence which font is being used, really matters. The editor is definitively left to right, and made for monospaced fonts, which does not work well with national character sets that uses ligatures and variable kerning. VS Code is many years younger than the Delphi Editor, which started supporting Unicode source in Delphi 2009 - so yes, it could use modernization. Your example is definitively a good one - and should be reported as an issue in https://quality.embarcadero.com/ If you do, make sure you attach the original .pas file as well as the screen shots.
-
Good question. I am afraid I am not of any help.
-
@Sonjli - Did you read this article? https://blog.grijjy.com/2020/10/07/an-xml-dom-with-just-8-bytes-per-node/ Not sure how that lib would fare with regards to CPU usage - but it should be fast enough. Edit: Doh... I didn't realize Neslib was the lib in the article 😛 Need more coffee.
-
I guess you've read this: https://stackoverflow.com/questions/39190582/error-itms-90023-missing-required-icon-file Edit: Never mind - seems to be irrelevant. Are you using the most recent version of XCode?
-
Another solution to the font predicament is to use a translation tool for the actual text to be displayed, keeping the string constant in the code in English. In translation tools, you are usually not bound to monospaced fonts. This would also allow programmers not fluent in Thai to understand the text, and it would make the application ready for translation to a multitude of languages.
-
For future reference: Which font was it and where did you find it? Edit: An idea for a future enhancement of development IDEs would be support for custom fonts (that not necessarily are monospaced) for string constants in the source code. I won't be holding my breath for that to arrive, though - since it opens a hornet's nest of questions such as "Why does the cursor jump many characters to the right when I navigate up or down from this string constant?"
-
A class that returns different types of components
Lars Fosdal replied to Stano's topic in Algorithms, Data Structures and Class Design
Maybe it's a language barrier thing, but I am still having problems understanding the actual problem you are trying to solve. -
A class that returns different types of components
Lars Fosdal replied to Stano's topic in Algorithms, Data Structures and Class Design
It can be done if the Controls have the same base class, but if you need to interact with the controls in a generic way, it would quickly become unmanageable without a lot of wrapper code, and even then it would probably be just as easy to simply return some enumerated value that decides the appropriate code paths later on. -
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
I have to repeat this comment. Among other things, these books give excellent advice on naming conventions. -
1 error + 1 error = 3 errors? where is the extra one?
Lars Fosdal replied to c0d3r's topic in Delphi IDE and APIs
Example? -
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
EnableDisableWindow(WhyNot: boolean) -
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
EnableDisableWindow(wnd, FALSE) does not convey the meaning of FALSE, while EnableWindow(wnd, FALSE) does. -
I'd suggest using GitHub to share code. Makes it easy to access, easy to contribute to, and prevents walls of code in a small forum.