Re: Gdraw - setting popup message?
Fredrick Brennan <[email protected]> Tue, 16 Apr 2019 18:20:56 +0800
| Newsgroups | gmane.comp.fonts.fontforge.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks for all the help everyone.
It turned out that I could fix the problem by adding a GGadgetSetPopupMsg8, this way I could just pass it the value gettext gives directly.
+void GGadgetSetPopupMsg8(GGadget *g,const char *msg) {
+ unichar_t* temp = utf82u_copy(msg);
+ GGadgetSetPopupMsg(g, temp);
+ free(temp);
+}
Jeremy committed my recent work on user decompositions, and while that commit is adequate and works well enough, I'm making a better UI which you can see in https://github.com/fontforge/fontforge/issues/3659 - using GGadgetSetPopupMsg8 was essential to that because I have to change the popup messages based on what's ticked.
Would appreciate comments here or there on my new proposed UI :-) Using SplineFontTextArea has been a nightmare, but I've almost got it down pat!
Fred
---- On Sun, 14 Apr 2019 23:16:43 +0800 Skef Iterum <[email protected]> wrote ----
> Does it work to start with, if you add the message before/as you are
> creating it?
>
> I haven't looked at this in any depth but you might try replacing
> GGadgetPreparePopup with GGadgetPreparePopup8 on line 1689 of
> gdraw/gtextfield.c . It looks like text fields may never have been
> updated to support UTF8 popups.
>
> Skef
>
> On 4/14/19 6:19 AM, Fredrick Brennan wrote:
> > (I apologize if you are seeing this twice, I sent it to the wrong list. Hoping for your patience and understanding, I don't often use mailing lists.)
> >
> > Greetings,
> >
> > I'm trying to set the popup message of a GTextField after it's been created, but I can't seem to do so...
> >
> > The function that is supposed to do this, GGadgetSetPopupMsg, just gives me a long list of U+FFFD glyphs no matter what message I attempt to set to. The same unsurprisingly happens if I include gdraw/ggadgetsP.h and try to set `popup_msg`.
> >
> > Anyone know what I'm doing wrong? I notice GGadgetSetPopupMsg isn't used by anything, so why is it even there?
> >
> > Best,
> > Fred Brennan
> >
> >
> >
> >
> >
> > _______________________________________________
> > fontforge-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/fontforge-devel
> > http://fontforge.10959.n7.nabble.com/Developer-f3.html
>
_______________________________________________
fontforge-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fontforge-devel
http://fontforge.10959.n7.nabble.com/Developer-f3.html