From: C R Onjob Date: Mon, 18 Aug 2014 17:00:02 +0000 (+0800) Subject: Automatic commit of irc logs X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=2f0023fef9cb808a8134a5510ff10ef4960b8454;p=ipdf%2Fdocuments.git Automatic commit of irc logs Beware of low-flying butterflies. --- diff --git a/irc/#ipdf.log b/irc/#ipdf.log index 0be461e..4ff25f3 100644 --- a/irc/#ipdf.log +++ b/irc/#ipdf.log @@ -3813,3 +3813,84 @@ 21:15 < matches> I hope that's not the conference abstract 21:15 < matches> I also really hope we're allowed to use our own computer and things in the conference 21:16 < matches> Also I really hope that if I can use my own computer it doesn't decide to shit itself anyway just to spite me +--- Day changed Mon Aug 18 2014 +17:06 < matches> Good news and bad news! +17:07 < matches> The kerning now appears to kern in the right direction +17:07 < matches> But this means "BleedingCowboys.ttf" works +20:30 < sulix> It's a pain to look up clipping of beziers, because there's a separate technique for doing something else called "bézier clipping" +20:40 < matches> Baha +20:41 < matches> I'm basically just procrastinating with Qt +20:41 < matches> I mean +20:41 < matches> Doing *awesome* things with Qt +20:48 < sulix> I am looking with considerable envy at SolveQuadratic(). +20:49 < sulix> SolveCubic() will get very ugly. +20:49 < sulix> Assuming I don't just sample the cubic at 100 points and look for roots. +20:49 < matches> Haha +20:49 < matches> Newton Raphson? +20:50 < sulix> Very tempting. +20:50 < matches> Then you can solve any bezier! +20:50 < matches> Then we can put in Quintics! +20:50 < sulix> Solving cubics exactly is not fun. +20:50 < sulix> Dear god no. +20:50 < matches> Imagine how many loops a quintic could have... +20:51 * sulix cries quietly in the corner. +20:53 < matches> So I'm calling AddText with sane values and nothing is happening :( +20:56 < sulix> With or without quadtree? +20:56 < sulix> With quadtree, everything is broken if you try adding things. +20:56 < sulix> Because they won't be added to a node. +20:57 < matches> No quad trees I think +20:57 < matches> Yeah no quad tree +21:00 < matches> Wait I think we need to rebuild the buffers or something +21:07 < matches> Ah, ForceRenderDirty() +21:14 < matches> I don't think the scale of our text is quite right? +21:14 < sulix> Well, the scale of everything is wrong, but it's entirely possible that the text is _extra wrong_ +21:16 < sulix> In theory, the "scale" input to addText is the "height" of a character. +21:19 < matches> Mmm +21:19 < matches> I'm trying to add text relative to the current view +21:19 < matches> But it isn't consistent +21:19 < matches> When I go to a different view it is definitely not adding it in the same relative place +21:20 < matches> The scale and positions aren't *already* relative are they? +21:22 < sulix> Not to the view... +21:24 < matches> What are they relative to? +21:24 < matches> Anyway instead of fixing that bug I'm adding more +21:25 < sulix> Umm... The bounding box maybe? +21:25 * sulix investigates. +21:26 < sulix> Scale and position should (I think) be normal, document coordinates. +21:26 < matches> Odd +21:26 < matches> Oh well +21:26 < matches> Having Qt is totally worth it by the way +21:27 < matches> Although it is still slightly embarrassing that it has its own SVG parser +21:27 < matches> Ours is better! +21:27 < matches> It has Reals everywhere! +21:27 < matches> Except where it constructs Real from floats... +21:27 < matches> And converts them to floats... +21:28 < sulix> Thesis title should be "Keepin' it real: Staying afloat on the sea of document precision" +21:31 < matches> Bahaha +21:31 < matches> That is brilliant +21:32 < matches> The Qt stuff is never deleting anything +21:32 < matches> I suppose I should fix that at some point +21:33 < matches> So basically it is a state machine and you use the menu to change the state +21:33 < matches> Pressing OK does something depending on the state +21:34 < matches> And there is a single text edit you can type stuff into +21:34 < matches> In theory it can hide/show different widgets depending on the state +21:34 < matches> I feel like I should add a "Generate Thesis Title" widget now... +21:35 < matches> Also I can sort of see the appeal of lambdas for GUI programming now +21:35 < matches> But I have a feeling they would totally break Qt anyway +21:49 < matches> ... +21:49 < matches> Ok sometimes the text gets added upside down... +21:49 * sulix disclaims any and all responsibility for that. +21:51 < matches> Yes! +21:51 < matches> I finally did that thing I was saying I'd do for like 3 weeks +21:51 < matches> Zoom in to floating point limit +21:51 < matches> Add SVG +21:51 < matches> Watch it explode! +21:52 < sulix> Oooh... +21:52 < matches> It is glorious +21:54 < matches> We need to be a bit careful with thread safety in qt +21:55 < matches> Really we should be able to request that the qt thread call UpdateAll itself +21:55 < matches> Rather than calling it directly from the viewer thread +21:55 < matches> But I'm not sure how that's done +21:55 < matches> There's all this stuff about "Cross thread signals" on the internet +21:56 < matches> It seems you can hide/show things but not much else +22:47 < matches> Bah you pushed things! +22:55 * sulix proclaims the new features as excellent and promptly goes to bed.