|
As I say, "a camera can be used to tell a variety of truths".
|
|
|
|
|
|
|
Or even wide-angle lenses, much beloved by real estate agents.
|
|
|
|
|
honey the codewitch wrote: Yoga pants
... are a priviledge - not a right!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
If your SO asks "do these pants make me look fat?"
Run.
>64
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
“ No fatter than usual honey!”
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
There's a saying that states that the two types of people that tell the truth are "Drunks and dying men"
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I've spent at least a day and a half and over 1700 lines of code (compiling but most never having been executed) just *loading* a TTF file.
The tables therein are convoluted. There's one named "OS/2". And yeah it appears as though it was designed by a committee of vendors led by Apple. If it wasn't I'd be shocked just because of how it turned out.
Instead of baking the glyphs for the fonts out they allow you to compose "compound glyphs" which are a composite of multiple glyphs transformed and offset. I suppose it's to make the file size smaller but it makes decoding them a hassle that requires heap allocs and deallocs in order to do the bookkeeping to process the whole mess, furthering heap fragmentation and also potentially causing out of memory exceptions on RAM that's only used temporarily during the loading process and then tossed. I can see why I have to do similar with decompressing JPEGs but font files should never be this complicated.
I really don't like being in the situation of having a day of coding under my belt but having not even run the code yet.
Real programmers use butterflies
|
|
|
|
|
This standard must date to a time when file size mattered. Imagine that!
|
|
|
|
|
Greg Utas wrote: This standard must date to a time when file size mattered. Imagine that! Good that you specified file size...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I am amazed you are writing your own TrueType renderer. Not to scare you off, but that is something that people like Microsoft and Adobe have large teams working on, even today after decades of stable implementations.
Are you doing the rendering on your itty-bitty device?
If not, and you're doing the rendering in a Windows app and downloading bitmap fonts to the device, you might look at GetGlyphOutlineW function (wingdi.h) - Win32 apps | Microsoft Docs[^].
Software Zen: delete this;
|
|
|
|
|
A) Yes, yes I am. I've got it rendering, sort of. Still working out the kinks
B) Yes I'm rendering on the device, because certain content like EPUB and CSS demands the ability to load fonts
C) I've actually tried the .NET wrapper around that call and the path I got back was pretty neat, but I couldn't get it to align along the ascent consistently enough to rasterize it properly.
Real programmers use butterflies
|
|
|
|
|
Wow.
Software Zen: delete this;
|
|
|
|
|
I need to dekinkify it so I'm actually porting it to C# and back again. Or at least a portion of it.
Maybe I'll post that here.
Real programmers use butterflies
|
|
|
|
|
If you look at your bum in a mirror, does it look like mud?
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
But the question is... do you have enough conundrums for the weekend?
|
|
|
|
|
If I had a bum, I would throw him out of my house!
🙂
|
|
|
|
|
How elitist, bigoted, and dehumanizing of you. Just because someone doesn't live in the same economic circumstances as you, there's no call to ridicule them or refer to them as your property. Standing them in front of a mirror and embarassing them is unbelievable cruelty.
Wait a second. Oh. This is one of those English things, isn't it? "Bum" means someone's posterior, buttocks, behind, ass. Okay, now I get it.
Never mind.
Software Zen: delete this;
|
|
|
|
|
The day after his wife disappeared in a kayaking accident, an Irish man answered his door to find a grim-faced constable waiting in the front yard.
"We're sorry, Mr. O' Flynn, but we have some information about your dear wife, Maureen" said the officer. "Tell me!
Did you find her?" Michael Patrick O'Flynn asked.
The constable said "I have some bad news, some good news, and some really great news. Which would you like to hear first?" Fearing the worst, Mr. O' Flynn said "Give me the bad news first".
The constable said "I'm sorry to tell you, sir, but early this morning we found your poor wife's body in the bay". "Lord
sufferin' Jesus and Holy Mother of God!" exclaimed O' Flynn.
Swallowing hard, he asked "What could possibly be the good news?" The constable continued "When we pulled the late, departed poor Maureen up, she had 12 of the best-looking Atlantic lobsters that you have ever seen clinging to her. Haven't seen lobsters like that since the 1960's, and we feel you are entitled to a share in the catch".
Stunned, Mr. O' Flynn demanded "Wow! if that's the good news, then what's the really great news?" The
constable replied "We're gonna pull her up again tomorrow"
Real programmers use butterflies
|
|
|
|
|
a non-programming post?!
|
|
|
|
|
Sometimes I break character.
Real programmers use butterflies
|
|
|
|
|
Captain Obtuse weighing in here. Historically breaks weren't really characters per se. RS-232 and 60 ma current-loop both implemented 'break' by setting the serial signal line to a constant state for several character times to allow downstream hardware to synchronize to a know state.
Software Zen: delete this;
|
|
|
|
|
Who's there?
|
|
|
|
|
The last man on Earth sat alone in a room.
There was a knock at the door...
Software Zen: delete this;
|
|
|
|