Yes, I have chaanged the source to get it work ;)
Here a list of what you have to add:
First uncomment the bbFontHeight function in font.cpp
then add in font.h this, that the extern "C" block looks like this in the end.
After that you have to edit the Win32Gui.bmx file
and add this function:
and finally rebuild the module.
Should also work with bbFontwidth
BtW: In my Highlighter I have used the TMap and it was really fast with more then 16000 unique Keywords. Will yours be faster than Tmap?
And the problem for a highlighter isn't the comparison with keywords. Unfortunatly the bottleneck of fast highlightning in Bmax is the Richedit Control. The only way to speed it up, would be to Heck in the OnPaint Event and afaik impossible in BMax :(
Here a list of what you have to add:
First uncomment the bbFontHeight function in font.cpp
then add in font.h this, that the extern "C" block looks like this in the end.
Int bbFontDescent( BBFont *font ); Int bbFontHeight( BBFont *font ); };
After that you have to edit the Win32Gui.bmx file
and add this function:
Function bbFontHeight( font )
and finally rebuild the module.
Should also work with bbFontwidth
BtW: In my Highlighter I have used the TMap and it was really fast with more then 16000 unique Keywords. Will yours be faster than Tmap?
And the problem for a highlighter isn't the comparison with keywords. Unfortunatly the bottleneck of fast highlightning in Bmax is the Richedit Control. The only way to speed it up, would be to Heck in the OnPaint Event and afaik impossible in BMax :(