Click here to Skip to main content
15,894,017 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 4:30
mvahoney the codewitch5-Jul-21 4:30 
PraiseRe: Polygon filling, and TTF mess Pin
Randor 5-Jul-21 4:51
professional Randor 5-Jul-21 4:51 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 4:53
mvahoney the codewitch5-Jul-21 4:53 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 4:58
mvahoney the codewitch5-Jul-21 4:58 
AnswerRe: Polygon filling, and TTF mess Pin
Randor 5-Jul-21 7:18
professional Randor 5-Jul-21 7:18 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 9:09
mvahoney the codewitch5-Jul-21 9:09 
GeneralRe: Polygon filling, and TTF mess Pin
Randor 5-Jul-21 11:28
professional Randor 5-Jul-21 11:28 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 12:19
mvahoney the codewitch5-Jul-21 12:19 
Here's a link to a repo in C#. I have something in C++ but you'll be buried in abstractions if I share it.

GitHub - codewitch-honey-crisis/Ttf[^]

The pertinent code is all in Main.cs

_poly contains a list of points to draw. Because of the needs of the winding algorithm, I close the polygon as the final point (it points to the same point as the first point). That happens in Main's constructor.

The constructor takes a glyph that I've loaded from a ttf and turns it into a bunch of "GlyphPoint" entries, which the ctor turns into Point objects. There's an extra member on GlyphPoint but I'm not using it in this case. It's for rounding the edges of the polygons.
Real programmers use butterflies

GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 12:29
mvahoney the codewitch5-Jul-21 12:29 
GeneralRe: Polygon filling, and TTF mess Pin
Randor 6-Jul-21 4:28
professional Randor 6-Jul-21 4:28 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch6-Jul-21 4:36
mvahoney the codewitch6-Jul-21 4:36 
GeneralRe: Polygon filling, and TTF mess Pin
Super Lloyd5-Jul-21 5:00
Super Lloyd5-Jul-21 5:00 
GeneralRe: Polygon filling, and TTF mess Pin
honey the codewitch5-Jul-21 12:53
mvahoney the codewitch5-Jul-21 12:53 
QuestionMessage Closed Pin
5-Jul-21 2:19
Marketing Media Hub5-Jul-21 2:19 
AnswerRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
Maximilien5-Jul-21 2:26
Maximilien5-Jul-21 2:26 
GeneralRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
OriginalGriff5-Jul-21 2:28
mveOriginalGriff5-Jul-21 2:28 
AnswerRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
OriginalGriff5-Jul-21 2:27
mveOriginalGriff5-Jul-21 2:27 
AnswerRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
harold aptroot5-Jul-21 2:34
harold aptroot5-Jul-21 2:34 
GeneralRe: Is there a way to add strings to a list without the quotation marks in C++? Pin
KarstenK5-Jul-21 4:14
mveKarstenK5-Jul-21 4:14 
QuestionMessage Closed Pin
5-Jul-21 2:24
Marketing Media Hub5-Jul-21 2:24 
AnswerRe: Dont work, it´s something whit the loops? Pin
Maximilien5-Jul-21 2:25
Maximilien5-Jul-21 2:25 
AnswerRe: Dont work, it´s something whit the loops? Pin
OriginalGriff5-Jul-21 2:26
mveOriginalGriff5-Jul-21 2:26 
AnswerRe: Dont work, it´s something whit the loops? Pin
honey the codewitch5-Jul-21 2:26
mvahoney the codewitch5-Jul-21 2:26 
AnswerRe: Dont work, it´s something whit the loops? Pin
Greg Utas5-Jul-21 2:37
professionalGreg Utas5-Jul-21 2:37 
AnswerRe: Dont work, it´s something whit the loops? Pin
Mike Hankey5-Jul-21 3:12
mveMike Hankey5-Jul-21 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.