Jump to content

Lars Fosdal

Administrators
  • Content Count

    3504
  • Joined

  • Last visited

  • Days Won

    115

Everything posted by Lars Fosdal

  1. Lars Fosdal

    When will IDE Editor support more fonts?

    @TiGü I do get Thai, Arabic, Chinese - even when using a font that does not have such characters in it. The reason seems to be that there is trickery going on under the hood for glyph substitution. https://docs.microsoft.com/en-us/globalization/input/font-technology It does look good and behave well in VS Code - and it does look like shit in the Delphi IDE. In VS Code - even navigation with right arrow goes right to left within the Arabic parts of the text. Did you create a report in Quality Central?
  2. Lars Fosdal

    When will IDE Editor support more fonts?

    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?
  3. Lars Fosdal

    When will IDE Editor support more fonts?

    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.
  4. Lars Fosdal

    When will IDE Editor support more fonts?

    @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.
  5. Lars Fosdal

    Missing icon file "167x167"

    Good question. I am afraid I am not of any help.
  6. Lars Fosdal

    High processor due to internal loop

    @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.
  7. Lars Fosdal

    Missing icon file "167x167"

    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?
  8. Lars Fosdal

    When will IDE Editor support more fonts?

    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.
  9. Lars Fosdal

    When will IDE Editor support more fonts?

    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?"
  10. Maybe it's a language barrier thing, but I am still having problems understanding the actual problem you are trying to solve.
  11. 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.
  12. I have to repeat this comment. Among other things, these books give excellent advice on naming conventions.
  13. EnableDisableWindow(WhyNot: boolean)
  14. EnableDisableWindow(wnd, FALSE) does not convey the meaning of FALSE, while EnableWindow(wnd, FALSE) does.
  15. Lars Fosdal

    Footman

    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.
  16. Lars Fosdal

    ANN: Parnassus Parallel Debugger

    You need to be on a subscription, and using 10.4.1.
  17. Lars Fosdal

    Internet time sync - with some timeout

    So - on the problem system - the log stops before "sync completed" ? Is the process running elevated? Is there anything in the windows logs? What about the local firewall settings on the problem PC - does it allow UDP through?
  18. Lars Fosdal

    Internet time sync - with some timeout

    Did you read this thread?
  19. Lars Fosdal

    Internet time sync - with some timeout

    TIdSNTP.ReceiveTimeout defaults to IdTimeoutInfinite; (-2). Try setting it to the desired timeout interval in milliseconds?
  20. Lars Fosdal

    When will IDE Editor support more fonts?

    Most of these fonts presented in the Options | UI | Editor | Display list of my Delphi, are not installed with Delphi, nor are they installed with Windows. Their common trait is that they are monospaced - which also is the default for VS Code, btw. Searching for monospaced and Thai, this shows up - and it is monospaced, has Thai characters, but doesn't appear to support Unicode Thai - so I am unsure if it will work as desired. https://www.dafont.com/pw-thai-monospaced-.font Edit 1: I also found https://bwaiwai.blogspot.com/2013/06/DejaVuSansMonoThai.html - but couldn't find a free download to check its Unicode coverage. Edit 2: The last comment on this page, suggests some other alternatives as well. https://forum.portswigger.net/thread/thai-characters-not-displayed-correctly-in-the-burp-suite-f39cb4ff My list of Delphi available fonts.
  21. TBH, I am careful around any pre-built binaries.
  22. Lars Fosdal

    Sql Update

    My guess would be that I is in a sub-select, and not visible in the main expression? I use MSSQL and not Interbase, though.
  23. Lars Fosdal

    When will IDE Editor support more fonts?

    Does any of these work? https://catalog.monotype.com/language/thai
  24. IMO, it would be natural to use the UTC time as your comparison time, and not the local time. The user's time zone may vary with travel. Wherever the user is at the moment - only UTC timestamps are comparable. However - if you are talking to a central server, the only way to ensure comparable timestamps is that you create them on the server, and not on the clients. This is because you cannot rely on multiple devices time engines to be 100% in sync with eachother. So - When you connect to the server, the server gives you a timestamp for the data you request. This you store locally. The next time you connect to the server, you compare the stored timestamp with the server's timestamp to determine if there was a change.
×