Recent

Author Topic: New version of BGRABitmap  (Read 288120 times)

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: New version of BGRABitmap
« Reply #570 on: May 15, 2020, 04:17:30 am »
Another problem with MSEGUI

Code: Pascal  [Select][+][-]
  1. Free Pascal Compiler version 3.3.1-r43969 [2020/01/18] for i386
  2. Copyright (c) 1993-2019 by Florian Klaempfl and others
  3. Target OS: Win32 for i386
  4. Compiling button.pas
  5. Compiling C:\Users\Damian\Documents\GitHub\bgragui\bgraguicontrols\msegui\bgbutton.pas
  6. Compiling C:\Users\Damian\Documents\GitHub\bgrabitmap\bgrabitmap\bgrabitmap.pas
  7. Compiling C:\Users\Damian\Documents\GitHub\bgrabitmap\bgrabitmap\bgramseguibitmap.pas
  8. Compiling C:\Users\Damian\Documents\GitHub\bgrabitmap\bgrabitmap\bgratext.pas
  9. bgramsegui_text.inc(5,32) Error: Identifier idents no member "Font"
  10. bgramsegui_text.inc(6,18) Error: Identifier idents no member "DrawString"
  11. bgramsegui_text.inc(16,63) Error: Identifier idents no member "Font"
  12. bgramsegui_text.inc(18,35) Error: Identifier idents no member "GetStringWidth"
  13. bgramsegui_text.inc(19,35) Error: Identifier idents no member "Font"
  14. bgramsegui_text.inc(20,18) Error: Identifier idents no member "DrawString"
  15. bgramsegui_text.inc(30,60) Error: Identifier idents no member "GetStringWidth"
  16. bgramsegui_text.inc(31,68) Error: Identifier idents no member "GetStringWidth"
  17. bgramsegui_text.inc(34,55) Error: Identifier idents no member "Font"
  18. bgramsegui_text.inc(35,68) Error: Identifier idents no member "Font"
  19. bgramsegui_text.inc(37,32) Error: Identifier idents no member "Font"
  20. bgramsegui_text.inc(38,18) Error: Identifier idents no member "DrawString"
  21. bgramsegui_text.inc(45,33) Error: Identifier idents no member "GetStringWidth"
  22. bgramsegui_text.inc(45,72) Error: Identifier idents no member "Font"
  23. bgramsegui_text.inc(64,23) Error: Identifier idents no member "GetStringWidth"
  24. bgramsegui_text.inc(78,18) Error: Identifier idents no member "FillRect"
  25. bgratext.pas(272,15) Error: Identifier idents no member "Font"
  26. bgratext.pas(273,15) Error: Identifier idents no member "Font"
  27. bgratext.pas(274,15) Error: Identifier idents no member "Font"
  28. bgratext.pas(275,15) Error: Identifier idents no member "Font"
  29. bgratext.pas(495,3) Warning: Unreachable code
  30. bgratext.pas(505,20) Error: Identifier idents no member "Font"
  31. bgratext.pas(506,20) Error: Identifier idents no member "Font"
  32. bgratext.pas(507,20) Error: Identifier idents no member "Font"
  33. bgratext.pas(509,20) Error: Identifier idents no member "Font"
  34. bgratext.pas(545,19) Error: Identifier idents no member "Font"
  35. bgratext.pas(546,19) Error: Identifier idents no member "Font"
  36. bgratext.pas(547,19) Error: Identifier idents no member "Font"
  37. bgratext.pas(696,22) Error: Identifier idents no member "Font"
  38. bgratext.pas(699,24) Error: Identifier idents no member "Font"
  39. bgratext.pas(702,24) Error: Identifier idents no member "Font"
  40. bgratext.pas(708,24) Error: Identifier idents no member "Font"
  41. bgratext.pas(743,22) Error: Identifier idents no member "Font"
  42. bgratext.pas(746,24) Error: Identifier idents no member "Font"
  43. bgratext.pas(749,24) Error: Identifier idents no member "Font"
  44. bgratext.pas(1102,12) Error: Identifier idents no member "Font"
  45. bgratext.pas(1103,12) Error: Identifier idents no member "Font"
  46. bgratext.pas(1104,12) Error: Identifier idents no member "Font"
  47. bgratext.pas(1179,12) Error: Identifier idents no member "Font"
  48. bgratext.pas(1180,12) Error: Identifier idents no member "Font"
  49. bgratext.pas(1181,89) Error: Identifier idents no member "Font"
  50. bgratext.pas(1182,20) Error: Identifier idents no member "Font"
  51. bgratext.pas(1183,12) Error: Identifier idents no member "Font"
  52. bgratext.pas(1817) Fatal: There were 42 errors compiling module, stopping
  53. Fatal: Compilation aborted
  54.  

I did these steps to configure the IDE (Option 2 - Defines)
https://github.com/bgrabitmap/bgragui/tree/dev-bgragui#option-2---defines

First open 'mymseide' project that comes with mseide-msegui sources. Then add the options in the ide, and in the project options as well, and also in the include file.

Try compiling bgragui\examples\button with the IDE, I get these error messages.
« Last Edit: May 15, 2020, 04:41:11 am by lainz »

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: New version of BGRABitmap
« Reply #571 on: May 15, 2020, 06:04:01 am »
> Try compiling bgragui\examples\button with the IDE, I get these error messages.

Please, take a look at BGRAgui Github messages, all is solved there.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: New version of BGRABitmap
« Reply #572 on: May 15, 2020, 07:29:25 am »
I have EasyLazFreeType from lazarus\components\lazutils\easylazfreetype.pas

And in that file nowhere is included CharKerning.
Then the file is not up-to-date. Compare to:
https://svn.freepascal.org/svn/lazarus/trunk/components/lazutils/
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: New version of BGRABitmap
« Reply #573 on: May 16, 2020, 01:51:40 am »
> Try compiling bgragui\examples\button with the IDE, I get these error messages.

Please, take a look at BGRAgui Github messages, all is solved there.

Thanks, I will commit the fix right now.

I have EasyLazFreeType from lazarus\components\lazutils\easylazfreetype.pas

And in that file nowhere is included CharKerning.
Then the file is not up-to-date. Compare to:
https://svn.freepascal.org/svn/lazarus/trunk/components/lazutils/

Ok, I see that. Seems that my trunk is older.  :)

Edit. I will try to download a new trunk to test, my current trunk is from January.
« Last Edit: May 16, 2020, 04:00:38 am by lainz »

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: New version of BGRABitmap
« Reply #574 on: May 16, 2020, 06:39:07 am »
The change was made very recently.

If you use svn on it you get can the update quickly.
Conscience is the debugger of the mind

kinlion

  • Jr. Member
  • **
  • Posts: 82
  • I Love Lazarus
Re: New version of BGRABitmap
« Reply #575 on: June 13, 2020, 01:20:55 pm »
hi, circular,

I just found a bug of the class TSVGGroup.
please look at https://forum.lazarus.freepascal.org/index.php/topic,50183.0.html

Thanks.

The change was made very recently.

If you use svn on it you get can the update quickly.

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: New version of BGRABitmap
« Reply #576 on: June 13, 2020, 03:48:39 pm »
BGRABitmap v11.1
https://github.com/bgrabitmap/bgrabitmap/releases

- add licence headers in source code
- refactor code generation for Unicode and colorspace
- add Makefile
- fix version check of LazFreeType
- fix group tag in SVG
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: New version of BGRABitmap
« Reply #577 on: June 13, 2020, 05:42:17 pm »
Thanks,  8)

process_1

  • Guest
Re: New version of BGRABitmap
« Reply #578 on: June 23, 2020, 03:25:34 pm »
circular,

All this will be soon available through Online Package Manager?

The second BGRA package available there (BGRA Controls) cannot be compiled on Ubuntu.
« Last Edit: June 23, 2020, 03:34:15 pm by process_1 »

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: New version of BGRABitmap
« Reply #579 on: June 23, 2020, 05:09:26 pm »
I don't see why it would not be on OPM.
Conscience is the debugger of the mind

MaartenJB

  • Full Member
  • ***
  • Posts: 112
Re: New version of BGRABitmap
« Reply #580 on: July 15, 2020, 09:42:58 am »
Hi Circular,

OPM is not updated with the latest version (see attachment). I noticed it yesterday when I wanted to install bgrabitmap using OPM and got the freetype error.

Best regards

Maarten

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: New version of BGRABitmap
« Reply #581 on: July 19, 2020, 05:50:39 pm »
That surprising because the json file seems up-to-date:
https://github.com/bgrabitmap/bgrabitmap/blob/master/update_BGRABitmap.json
Conscience is the debugger of the mind

balazsszekely

  • Guest
Re: New version of BGRABitmap
« Reply #582 on: July 19, 2020, 06:27:15 pm »
Hi Maarten,

I updated BGRABitmap a few days ago, the current version in the central repository is 11.1.0.0 and is the same with the one on @circular's github page.

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: New version of BGRABitmap
« Reply #583 on: July 19, 2020, 06:27:31 pm »
The thing is that there are 2 sources for a package in OPM. The one stored at https://packages.lazarus-ide.org/ and the one stored at GitHub / SourceForge that's pointed with the JSON.

One can be more updated than the other, the OPM one is maintained by GetMem, he updates manually the packages zip files that are used by OPM. The other is pointed by 'external sources' (that's actually the official source, but external for OPM) that's in this case GitHub 'master' zip.

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: New version of BGRABitmap
« Reply #584 on: July 20, 2020, 04:09:18 am »
New version of BGRABitmap 11.2
https://github.com/bgrabitmap/bgrabitmap/releases

- DrawPart can be stretched
- DrawCheckers for universal bitmap
- Optimize Unicode rendering by allowing partial drawing of text
- Add clip margin for vectorial Unicode rendering

Misc fixes
- BGRASVG: Fix SVG color format
- BGRAFreeType: use fixed glyph bounds in Lazarus 2.0.10

MacOS fixes
- Fix text bounds with space ending
- Fix RTL text embedding
- Handles retina in testbiditext2

EDIT: fixed OPM version
« Last Edit: July 22, 2020, 12:34:03 pm by circular »
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018