You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/05/30 12:17:00 UTC

[Bug 55030] New: RichTextRun getFontName can not get chinese font name

https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

            Bug ID: 55030
           Summary: RichTextRun getFontName  can not get chinese font name
           Product: POI
           Version: 3.9-dev
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
          Assignee: dev@poi.apache.org
          Reporter: zlfdtc1983@126.com

In PPT, when using POI to get the text fontname of textbox, it can not get the
correct fontname of chinese text.

searching for help, thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #8 from Linfei Zhao <zl...@126.com> ---
I have uploaded a PPT file 
(In reply to Abhinav Mathur from comment #2)
> Please see this bug https://issues.apache.org/bugzilla/show_bug.cgi?id=54880
> 
> It is similar to the current bug. I have attached the sample file with it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #3 from Nick Burch <ap...@gagravarr.org> ---
Any chance you could provide a snippet of code (or even better a failing unit
test) that shows the problem using that sample file? And also let us know what
powerpoint thinks the font is?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #4 from Abhinav Mathur <ab...@abhinavmathur.net> ---
I think the problem is in getFontName() method of RichTextRun.java.

The same problem is  being discussed with code here on stackoverflow
http://stackoverflow.com/questions/2687522/problem-with-using-apache-poi-to-convert-ppt-to-image

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

Linfei Zhao <zl...@126.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #9 from Linfei Zhao <zl...@126.com> ---
I have uploaded a PPT file as attachment
(In reply to Nick Burch from comment #1)
> Can you please upload a sample file that shows the issue, along with some
> code (ideally a unit test) that highlights the problem? Please also let us
> know what powerpoint things the font name is

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Can you please upload a sample file that shows the issue, along with some code
(ideally a unit test) that highlights the problem? Please also let us know what
powerpoint things the font name is

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #7 from Linfei Zhao <zl...@126.com> ---
Created attachment 30378
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30378&action=edit
File for GetFontName

the fontname of chinese text is "隶书", but actually when I use getFontName of
RichTextRun.java, the font name is "Times New Roman".

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #5 from Abhinav Mathur <ab...@abhinavmathur.net> ---
I think the problem is in getFontName() method of RichTextRun.java.

The same problem is  being discussed with code here on stackoverflow
http://stackoverflow.com/questions/2687522/problem-with-using-apache-poi-to-convert-ppt-to-image

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #2 from Abhinav Mathur <ab...@abhinavmathur.net> ---
Please see this bug https://issues.apache.org/bugzilla/show_bug.cgi?id=54880

It is similar to the current bug. I have attached the sample file with it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 55030] RichTextRun getFontName can not get chinese font name

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55030

--- Comment #6 from Nick Burch <ap...@gagravarr.org> ---
In r1488403 I have added unit tests based on the sample file supplied in bug
#54880. My unit test passes just fine...

If you could please produce a unit test that does show the problem, that would
help us with narrowing down the issue

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org