I am not sure whether I understand your intensions even though I am Polish :)
W dużym skrócie: musisz załadować czcionkę, podać code point (unicode) danego znaku, pobrać jego kontur i dokonać jego dekompozycji (rozkładu) na części składowe. Kontur opisany jest funkcjami - prostymi i krzywymi Beziera. One opisane są poprzez punkty kontrolne. Jak opisany jest kontur znajdziesz tutaj: http://www.freetype.org/freetype2/docs/glyphs/glyphs-6.html Niestety nie zajmowałem się czymś takim więc nie mam kodu który mógłby posłużyć za bazę dla ciebie. FT_GlyphSlotRec ma pole outline typu FT_Outline, następnie patrz instrukcja dekompozycji opisana wyżej. 2012/12/23 Werner LEMBERG <[email protected]>: > > Please help this guy. > > > Werner > > > > ---------- Wiadomość przekazana dalej ---------- > From: Pankracy <[email protected]> > To: Werner LEMBERG <[email protected]> > Cc: > Date: Sun, 23 Dec 2012 18:16:22 +0100 > Subject: Re: outline points > Werner LEMBERG pisze: >>> Please help me in outlines. >>> I need points on outlines (witdh any precysions). >>> I no need this same distance betwen points. I need many points on >>> outline. Please help me, this is dificult to found it. >>> >> >> Sorry, no time. As I've mentioned earlier, please write to the >> `[email protected]' e-mail list. >> > On this list anybody never help me. >> Since your English is very hard to understand, I suggest that you >> write to the list in both Polish and English -- maybe there are native >> Polish speakers who could help you. >> > Yes this is problem. > > 1. I have outline > 2. I must get all points ON the outline path. > Points in any format Integer or float. > > Please help me. How do I get points from (on the whole path) the > outline. Nothing more. The renderer somehow it does so it's somewhere in > the library freefont. You have just found. You do not have to write only > say where it is or how to extract. This, unfortunately, is nowhere > described in the documentation. > ==== > Masz rację. > > 1. Mam krzywą outline > 2. Potrzebuję uzyskać wszystkie punkty na ścieżce outline. > Format punktów może byc dowolny. Całkowite lub ułamki. > > Prosze pomóż mi. Jak mogę uzyskać punkty z outline. Nic więcej. Funkcja > renderująca jakos to robi wiec to już jest gdzieś w bibliotece freefont. > Trzeba to tylko znaleźć. Nie musisz nic pisac powiedz tylko gdzie to > jest lub jak to wydobyć. To niestety nigdzie nie jest opisane w > dokumentacji. > > > _______________________________________________ > Freetype mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/freetype > _______________________________________________ Freetype mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype
