You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Zhong Yi <yi...@yahoo.com> on 2003/02/05 22:18:44 UTC
/BT in PS
Jeremias,
I am looking at your new PS rendering code. The /BT
procedure you defined there is puzzling me. I don't
understand the purpose of the procedure. It seems to
me all it does is move the point to (0, 0). If so, why
so many matrix manipulations infront of it?
George
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: /BT in PS
Posted by Jeremias Maerki <de...@greenmail.ch>.
On 11.02.2003 07:37:44 Zhong Yi wrote:
> Thanks for clarifying /BT for me.
> I have been able to get WinCVS working.
Good to hear.
> So far I have
> implemented QUAD_TO segment in PSGraphics2D.java, text
> drawing and correct those color issues. I did not
> implement a StrokeSVGText for PS because new
> configuration mechanism has not implemented yet.
Probably not necessary. Have a look at the PDF/SVG support. Keiron
implemented the PDFTextPainter in a way that the configuration setting
isn't necessary. It automatically uses the best way to render text.
PDFTextPainter for simple things, stroking for more complicated things.
> Right
> now I working on traits and borders, but this may take
> a longer time 'cause I am kind of caught up by my own
> paid project.
No problem.
> One question, is it possible to apply some changes I
> made so far to maintainence branch or it's too late?
Christian is the boss here. He already turned down some new
functionality and I agree. We need to get 0.20.5 out of the door soon.
We can put your stuff in right after the release.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: /BT in PS
Posted by Zhong Yi <yi...@yahoo.com>.
Thanks for clarifying /BT for me.
I have been able to get WinCVS working. So far I have
implemented QUAD_TO segment in PSGraphics2D.java, text
drawing and correct those color issues. I did not
implement a StrokeSVGText for PS because new
configuration mechanism has not implemented yet. Right
now I working on traits and borders, but this may take
a longer time 'cause I am kind of caught up by my own
paid project.
One question, is it possible to apply some changes I
made so far to maintainence branch or it's too late?
George
--- Jeremias Maerki <de...@greenmail.ch> wrote:
> Sorry for the delay. BT/ET (begin/end text object,
> see PDF specs) is
> something I took over from the PDF renderer. The
> idea behind it is to
> make the PS renderer as similar to the PDF renderer
> as possible so it's
> easy to use a differ to identify code that could be
> factored out from
> the two renderers. I've already identified a few
> candidate snippets.
>
> I'm sorry if this confused you. But you're right,
> the code doesn't do
> much more than moving to (0,0). The code for BT/ET
> is inspired (but
> simplified) by the PostScript code generated by
> AcrobatReader when
> converting a PDF to PostScript. Acrobat Reader
> pretty much emulates the
> PDF vocabulary in PostScript. By my doing the same I
> can make the code
> of the PS renderer very similar to the PDF renderer
> for the reason above.
>
> Concerning your last question: I haven't yet paid
> close attention to the
> efficiency of the code produced. I just wanted to
> get it running so you
> could continue. The matrix manipulations could
> probably be simplified.
>
> I hope this helps. Anyway, I'm back and ready to
> help you. If you have
> something running, even if it's not the final
> version, you can wrap up a
> diff file and I'm going to apply it. Any luck yet
> with getting CVS
> running?
>
> On 05.02.2003 22:18:44 Zhong Yi wrote:
> > Jeremias,
> > I am looking at your new PS rendering code. The
> /BT
> > procedure you defined there is puzzling me. I
> don't
> > understand the purpose of the procedure. It seems
> to
> > me all it does is move the point to (0, 0). If so,
> why
> > so many matrix manipulations infront of it?
>
>
> Jeremias Maerki
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-dev-unsubscribe@xml.apache.org
> For additional commands, email:
> fop-dev-help@xml.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: /BT in PS
Posted by Jeremias Maerki <de...@greenmail.ch>.
Sorry for the delay. BT/ET (begin/end text object, see PDF specs) is
something I took over from the PDF renderer. The idea behind it is to
make the PS renderer as similar to the PDF renderer as possible so it's
easy to use a differ to identify code that could be factored out from
the two renderers. I've already identified a few candidate snippets.
I'm sorry if this confused you. But you're right, the code doesn't do
much more than moving to (0,0). The code for BT/ET is inspired (but
simplified) by the PostScript code generated by AcrobatReader when
converting a PDF to PostScript. Acrobat Reader pretty much emulates the
PDF vocabulary in PostScript. By my doing the same I can make the code
of the PS renderer very similar to the PDF renderer for the reason above.
Concerning your last question: I haven't yet paid close attention to the
efficiency of the code produced. I just wanted to get it running so you
could continue. The matrix manipulations could probably be simplified.
I hope this helps. Anyway, I'm back and ready to help you. If you have
something running, even if it's not the final version, you can wrap up a
diff file and I'm going to apply it. Any luck yet with getting CVS
running?
On 05.02.2003 22:18:44 Zhong Yi wrote:
> Jeremias,
> I am looking at your new PS rendering code. The /BT
> procedure you defined there is puzzling me. I don't
> understand the purpose of the procedure. It seems to
> me all it does is move the point to (0, 0). If so, why
> so many matrix manipulations infront of it?
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org