|
β 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;
|
|
|
|
|
One day, a man walks into a dentist's office and asks how much it will cost to extract wisdom teeth.
"Eighty dollars," the dentist says.
"That's a ridiculous amount," the man says. "Isn't there a cheaper way?"
"Well," the dentist says, "if you don't use an anesthetic, I can knock the price down to $60."
"That's still too expensive," replies the man.
"Okay," says the dentist. "If I save on anesthesia and simply rip the teeth out with a pair of pliers, I can knock the price down to $20."
"Nope," moans the man, "it's still too much." "Well," says the dentist, scratching his head, "if I let one of my students do it, I suppose I can knock the price down to $10."
"Marvelous," says the man. "Book my wife in for next Tuesday!"
The less you need, the more you have.
Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?
JaxCoder.com
|
|
|
|
|
What a shellfish tale!
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Instead of using the ones Herself's company provide her with.
Only took over three hours to set up an account ... most of it waiting for a OTP email, and the rest swearing at half-assed "developers" who produce this cr@p. You can tell it was written by some MP's mates company for a huge amount of money using the cheapest developers they could find sleeping in doorways.
And then they are ordered: one pack allowed only, contains 7 tests. So why are you supposed to do 2 tests a week? Why ship them in packs that last 3.5 weeks for one person, or 1.75 for a family of four?
Governments: I'll never understand them ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: You can tell it was written by some MP's mates company for a huge amount of money using the cheapest developers they could find sleeping in doorways
OriginalGriff wrote: Governments: I'll never understand them Seems like your off to a good start though.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Quote: Governments: I'll never understand them They're actually very easy to understand: unregulated, violent monopolies with no skin in the game.
|
|
|
|
|
OriginalGriff wrote: Governments: I'll never understand them ...
The golden rule.
Them with the gold rule!
The less you need, the more you have.
Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?
JaxCoder.com
|
|
|
|