Re: [textadept] TextAdept and ProFont

From: Jonas O. <ezjo....at.gmail.com>
Date: Tue, 16 Nov 2010 22:42:30 +0100

Well I just tried it a little on the mac, I have to admit it is slow
sometimes, maybe because of LUA or because of the font I'm using.
I have a crash just by removing the "!", using either profont or
monaco, here is the crash dump thing:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000008
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.textadept 0x0002dc15 SurfaceImpl::Descent(Font&) + 117
1 com.textadept 0x00066562 Style::Realise(Surface&,
int, Style*, int) + 226
2 com.textadept 0x00066bf9 ViewStyle::Refresh(Surface&) + 85
3 com.textadept 0x0004d8d6 Editor::RefreshStyleData() + 62
4 com.textadept 0x0004db5a Editor::TextWidth(int,
char const*) + 26
5 com.textadept 0x000578a1 Editor::WndProc(unsigned
int, unsigned long, long) + 7105
6 com.textadept 0x00064b0b
ScintillaBase::WndProc(unsigned int, unsigned long, long) + 2247
7 com.textadept 0x00034a7c
ScintillaGTK::WndProc(unsigned int, unsigned long, long) + 272
8 com.textadept 0x00003fc3 l_call_scintilla + 501
9 com.textadept 0x000042f1 l_call_buffer_function + 144
10 com.textadept 0x0000fc6e luaD_precall + 920
11 com.textadept 0x0001d161 luaV_execute + 3121
12 com.textadept 0x0000fd9f luaD_call + 121
13 com.textadept 0x00009ed0 lua_call + 51
14 com.textadept 0x00022bf8 luaB_dofile + 110
15 com.textadept 0x0000fc6e luaD_precall + 920
16 com.textadept 0x0000fd8b luaD_call + 101
17 com.textadept 0x00009e9b f_call + 33
18 com.textadept 0x0000f5f6 luaD_rawrunprotected + 59
19 com.textadept 0x0000f653 luaD_pcall + 79
20 com.textadept 0x0000aa08 lua_pcall + 242
21 com.textadept 0x00021dc9 luaB_pcall + 63
22 com.textadept 0x0000fc6e luaD_precall + 920
23 com.textadept 0x0001d161 luaV_execute + 3121
24 com.textadept 0x0000fd9f luaD_call + 121
25 com.textadept 0x00009e9b f_call + 33
26 com.textadept 0x0000f5f6 luaD_rawrunprotected + 59
27 com.textadept 0x0000f653 luaD_pcall + 79
28 com.textadept 0x0000aa08 lua_pcall + 242
29 com.textadept 0x0000799f l_call_function + 52
30 com.textadept 0x00007870 l_emit_event + 285
31 com.textadept 0x00008d62 new_scintilla_window + 481
32 com.textadept 0x000093d6 create_ui + 770
33 com.textadept 0x0000992e main + 277
34 com.textadept 0x000028ba start + 54

Well I, indeed, have many questions, being one hunter of a Notepad++
(nearest of what of make use of it) equivalent for the mac (meaning
using scintilla).
Is the block caret an already available feature in TA ?
Can it highlight braces when the caret is after a brace and not before ?
Is it possible to configure a keyboard shortcut to duplicate the
selection or the current line ?

I think I'm also going to dig into the C++ lexer, because I want to
colorize certain keyword classes differently, at least the differences
between types and instructions are already there so it feels better,
but I would also like to colorize modifiers (const, static, extern,
inline etc), textual operators (pretty much like static_cast, new,
delete, or, and etc) class-related (virtual, protected, public,
template, etc) keywords with other colours, I quickly looked into
cpp.lua, I guess it seems feasible, but in any case somebody else
already did it, it would be nice to not recraft my wheel...

By the way I don't know if such editor exist, but since I don't like
anti-aliased font at all (even consolas), do you think a
bitmap-font-only version of an editor such as textadept exists and
would be actually faster ?
On Tue, Nov 16, 2010 at 21:41, mitchell <c....at.caladbolg.net> wrote:
> Hi,
>
>> I know it's nerdy, but I'm addicted to profont
>> http://www.tobias-jung.de/seekingprofont/
>> I don't know if somebody already tried it, but all the characters are
>> messed up when using it, at least with the bitmap version. EDIT: worse
>> with the TTF version.
>> I hope you can fix it or that a fix exists !
>
> This is likely a problem with how GTK/GDK/Pango handles fonts. Anyway, as
> Brian mentioned, '!' with the TTF version does the trick.
>
>> Anyways congratulations, textadept is really the best editor out
>> there ! I don't know how I could not have found it first ! Cross-
>> platform, themes etc...
>> Hope I will be able to customize the themes/lexers as I intend...
>> *crosses fingers*.
>
> Thanks for the high praise! Let us know if you have additional questions.
>
> Best,
> mitchell
>
> --
> You received this message because you are subscribed to the Google Groups
> "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to
> textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/textadept?hl=en.
>
>
Received on Tue 16 Nov 2010 - 16:42:30 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:53:45 EST