Re: [links] DirectFB rendering text

Harry Lin D332 (中光電) <[email protected]> Wed, 8 Aug 2007 10:11:09 +0800
Newsgroups gmane.comp.web.links.list
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============0405926071==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C7D961.61EB08A5"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7D961.61EB08A5
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hello,
I am a french developer and I am trying to use links in an embedded =
linux Set Top Box. I am now testing links which seems to be a very =
interesting project using DirectFB displaying system.
I know that links doesn't support CSS or style features in HTML code, =
but I need to display some links (<a href=3D..> tag) on DIrectFB, =
wherever I want, by using coordinates.

I've already looked for some solution in directfb.c but I didn't find =
the method or function to display some text and links. Moreover I barely =
understand how links 'display system works.

What I would like to know, is :

1. How does links do to display some text on DirectFB ?



View_gr.c g_text_draw() #265 g_print_text()

Dip.c g_print_text() #1804 print_letter()

Dip.c print_letter() #1707 gd->draw_bitmap()

The gd->draw_bitmap() is directfb.c #335 directfb_draw_bitmap()

It blits the pngs to data->surface


2. How does links do to display data like "links" on DirectFB ?

=20

Maybe you can trace html.c html_a() ?


I hope there will be a possibility to modify this method or to replace =
it with a new one.
Thanks in advance for your advice.




------_=_NextPart_001_01C7D961.61EB08A5
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"chmetcnv"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:=B7s=B2=D3=A9=FA=C5=E9;
	panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
	{font-family:"\@=B7s=B2=D3=A9=FA=C5=E9";
	panose-1:2 2 3 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";
	color:black;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Times New Roman";
	color:blue;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite lang=3DZH-TW link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm =
0cm 4.0pt'>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>Hello,<br>
I am a french developer and I am trying to use links in an embedded =
linux Set
Top Box. I am now testing links which seems to be a very interesting =
project
using <i><span style=3D'font-style:italic'>DirectFB</span></i> =
displaying system.<br>
I know that links doesn't support CSS or style features in HTML code, =
but I
need to display some links <i><span style=3D'font-style:italic'>(&lt;a
href=3D..&gt; tag)</span></i> on DIrectFB, wherever I want, by using =
coordinates.<br>
<br>
I've already looked for some solution in <i><span =
style=3D'font-style:italic'>directfb.c
</span></i>but I didn't find the method or function to display some text =
and
links. Moreover I barely understand how links 'display system works.<br>
<br>
What I would like to know, is :<br>
<br>
1. How does links do to display some text on DirectFB ?<br>
<br>
<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>View_gr.c g_text_draw()
#<st1:chmetcnv TCSC=3D"0" NumberType=3D"1" Negative=3D"False" =
HasSpace=3D"True"
SourceValue=3D"265" UnitName=3D"g" w:st=3D"on">265 =
g</st1:chmetcnv>_print_text()<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>Dip.c g_print_text()
#1804 print_letter()<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>Dip.c print_letter()
#1707 gd-&gt;draw_bitmap()<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>The gd-&gt;draw_bitmap()
is directfb.c #335 directfb_draw_bitmap()<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>It blits the
pngs to data-&gt;surface<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'><br>
2. How does links do to display data like &quot;links&quot; on DirectFB =
?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>Maybe you can trace
html.c html_a() ?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'><br>
I hope there will be a possibility to modify this method or to replace =
it with
a new one.<br>
Thanks in advance for your advice.<br>
<br>
<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>

------_=_NextPart_001_01C7D961.61EB08A5--

--===============0405926071==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
links-list mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/links-list

--===============0405926071==--