← Back to team overview

kicad-developers team mailing list archive

Patch: move newstroke definitions to separate .cpp file

 

--00032555a2d618a0d8047ff22832 Content-Type: multipart/alternative; boundary=00032555a2d618a0cb047ff22830

--00032555a2d618a0cb047ff22830 Content-Type: text/plain; charset=UTF-8

Hi,

This patch is not ideal, as the the size of the array has to be declared in
newstroke_font.h, because sizeof() operator is used in drawtxt.cpp.

I have an idea how to modify the code to feed hashmap from array of glyphs
we already have defined, ignoring all "F^K[KFYFY[K[", which may reduce
amount of memory used to store glyphs in code (I am even thinking about
compression, as text format used is very compressible), and make the code
more objective in approach.

-- 
Manveru
jabber: manveru@...
gg: 1624001
http://www.manveru.pl
 --00032555a2d618a0cb047ff22830 Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>This patch is not ideal, as the the size of the array has to be =
declared in newstroke_font.h, because sizeof() operator is used in drawtxt.=
cpp.<br><br>I have an idea how to modify the code to feed hashmap from arra=
y of glyphs we already have defined, ignoring all &quot;F^K[KFYFY[K[&quot;,=
which may reduce amount of memory used to store glyphs in code (I am even =
thinking about compression, as text format used is very compressible), and =
make the code more objective in approach.<br clear=3D"all">
<br>-- <br>Manveru<br>jabber: <a href=3D"mailto:manveru@...";>manveru=
@manveru.pl</a><br> =C2=A0 =C2=A0 gg: 1624001<br> =C2=A0 <a href=3D"http://=
www.manveru.pl">http://www.manveru.pl</a><br>
 --00032555a2d618a0cb047ff22830----00032555a2d618a0d8047ff22832 Content-Type: application/octet-stream; 
name="newstroke_in_separate_cpp_file.patch"
Content-Disposition: attachment; 
filename="newstroke_in_separate_cpp_file.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g5uvk61r0

[Attachment content not displayed.] --00032555a2d618a0d8047ff22832-- 




Follow ups