You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/07/24 13:47:31 UTC

[jira] Created: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

[classlib][awt] GDIPTextRenderer can not draw hieroglyphs
---------------------------------------------------------

                 Key: HARMONY-4526
                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows
            Reporter: Alexey Petrenko
            Assignee: Alexey Petrenko


GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.

At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525356 ] 

Alexey A. Ivanov commented on HARMONY-4526:
-------------------------------------------

By the way, Windows can be installed to a different directory rather than C:\Windows -- hard-coding font names like this is not a good idea.
Additionally, it is common to use sans-serif fonts (like Arial) for dialogs rather than serif ones (like Times New Roman).

font.properties was documented for Java 1.4.2 somewhere in JavaDoc or tutorials. Its format changed in 1.5, there should also be the description of its format in the docs.

Regards,
Alexey.

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517189 ] 

Igor V. Stolyarov commented on HARMONY-4526:
--------------------------------------------

Investigation of this issue shows - there are no hieroglyphs glyphs in our Default font. If set font which suppurt hieroglyphs (for example: PMingLiU) test works fine. I see two ways for solving this issue:

1. Using (need finding this one first :) ) Default font which contains unified hieroglyphs glyphs

2. Create font chooser which will allow select needed font on demand.

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525984 ] 

Alexey A. Ivanov commented on HARMONY-4526:
-------------------------------------------

Yes,

That was my intention actually :)
If I remeber correctly, font.properties from JRE 1.4.2 can be used with Harmony, whereas that of 1.5 can't.

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524656 ] 

Alexei Zakharov commented on HARMONY-4526:
------------------------------------------

Guys, the issue can be solved by placing the following file in %DRLVM_JRE_HOME%\lib\font.properties file:

font.properties:
---
dialog.plain.0=Times New Roman,English
dialog.bold.0=Times New Roman Bold,English
dialog.italic.0=Times New Roman Italic,English
dialog.bolditalic.0=Times New Roman Bold Italic,English

filename.Times_New_Roman=C:/WINDOWS/Fonts/tomes.ttf
filename.Times_New_Roman_Bold=C:/WINDOWS/Fonts/timesbd.ttf
filename.Times_New_Roman_Italic=C:/WINDOWS/Fonts/timesi.ttf
filename.Times_New_Roman_Bold_Italic=C:/WINDOWS/Fonts/timesbi.ttf

dialog.plain.1=MingLiU,Chinese
dialog.bold.1=MingLiU,Chinese
dialog.italic.1=MingLiU,Chinese
dialog.bolditalic.1=MingLiU,Chinese

filename.MingLiU=C:/WINDOWS/Fonts/mingliu.ttc
---

However, the file format isn't described anywhere. I'll write a message to the mailing list about this.

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525837 ] 

Alexei Zakharov commented on HARMONY-4526:
------------------------------------------

Aha, I got it. The format from old RI versions - 1.4 and below - has been used as a prototype for Harmony's font.properties. 

Please note that I meant Sun JDK 1.5+ by RI in my previous messages. 

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko updated HARMONY-4526:
-------------------------------------

    Attachment: Harmony4526Test.java

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525369 ] 

Alexei Zakharov commented on HARMONY-4526:
------------------------------------------

Alexey I, 

As Alexey P. has already noticed - this was just a workaround. I will work on more viable examples and not going to commit this one  to repository. 

I agree that there are descriptions of RI's font.properties format on the Net. However, AFAIU it is not fully compatible with the one used by Harmony. Harmony does not support names for character subsets plus some other RI's features. RI in turn does not use component numbers (digits at the end on property name). This way, you cannot just take RI's file, drop it HArmony's jre/lib. It won't (shouldn't) work. I can be missing something of course.

Regards,
Alexei

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko updated HARMONY-4526:
-------------------------------------

    Attachment: Harmony4526.PNG

The correct picture for attached test case.

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko closed HARMONY-4526.
------------------------------------

    Resolution: Duplicate

> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-4526) [classlib][awt] GDIPTextRenderer can not draw hieroglyphs

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525360 ] 

Alexey Petrenko commented on HARMONY-4526:
------------------------------------------

Alexey,

this is not a fix yet... Just result of investigation :)


> [classlib][awt] GDIPTextRenderer can not draw hieroglyphs
> ---------------------------------------------------------
>
>                 Key: HARMONY-4526
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4526
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>         Attachments: Harmony4526.PNG, Harmony4526Test.java
>
>
> GDIPTextRenderer can not draw hieroglyphs now. It draws small squares instead of.
> I've changed Graphics::DrawDriverString to Graphics::DrawString (winFont.cpp:1629) and hieroglyphs became visible.
> At the same time Graphics::DrawDriverString accepts string to draw in Unicode so this function should draw all the characters too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.