[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: [OpenJDK 2D-Dev] [13] JDK-8219901: Noto fonts for East Asian countries cannot belong to Composit
From:       "Toshio 5 Nakamura" <TOSHIONA () jp ! ibm ! com>
Date:       2019-03-25 7:29:54
Message-ID: OF8B118B83.17979021-ON002583C8.00286DD1-002583C8.002930A9 () notes ! na ! collabserv ! com
[Download RAW message or body]

<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, \
sans-serif;font-size:9pt" ><div dir="ltr" >Hi Phil,</div> <div dir="ltr" \
>&nbsp;</div> <div dir="ltr" >Just a gentle reminder, I appreciate it if you have a \
> time to look at this.</div>
<div dir="ltr" >&nbsp;</div>
<div class="mail-signature-container" dir="ltr" >Thanks,</div>
<div class="mail-signature-container" dir="ltr" >Toshio Nakamura</div>
<div dir="ltr" >&nbsp;</div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid \
#aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" \
>----- Original message -----<br>From: "Toshio 5 Nakamura" \
> &lt;TOSHIONA@jp.ibm.com&gt;<br>Sent by: "2d-dev" \
> &lt;2d-dev-bounces@openjdk.java.net&gt;<br>To: Philip Race \
> &lt;philip.race@oracle.com&gt;<br>Cc: 2d-dev \
> &lt;2d-dev@openjdk.java.net&gt;<br>Subject: Re: [OpenJDK 2D-Dev] [13] JDK-8219901: \
> Noto fonts for East Asian countries cannot belong to CompositeFont<br>Date: Mon, \
> Mar 11, 2019 9:58 PM<br>&nbsp;
<p><font size="2" >Hi Phil,</font><br><br><font size="2" >Thank you so much for your \
reviewing.</font><br><br><font size="2" >Yes, "family" part can be removed with a few \
changes in</font><br><font size="2" \
>"src/java.desktop/unix/classes/sun/awt/FcFontManager.java".</font><br><br><font \
> size="2" >The updated webrev is:</font><br><font size="2" ><a \
> href="http://cr.openjdk.java.net/~tnakamura/8219901/webrev.01" \
> target="_blank">http://cr.openjdk.java.net/~tnakamura/8219901/webrev.01</a>/</font><br><br><tt><font \
> face="" size="3" >&gt; &nbsp;So you don't need to clean everything - just your \
> develop -internal<br>&gt; and -ea folders.</font></tt><br><font size="2" >Yes, \
> thank you for the clarification.</font><br><br><font size="2" \
> >Thanks,</font><br><font size="2" >Toshio Nakamura</font><br><br><tt><font face="" \
> > size="3" >Philip Race &lt;philip.race@oracle.com&gt; wrote on 2019/03/10 \
> > 18:05:18:<br><br>&gt; From: Philip Race \
> > &lt;philip.race@oracle.com&gt;</font></tt><br><tt><font face="" size="3" >&gt; \
> > To: Toshio 5 Nakamura &lt;TOSHIONA@jp.ibm.com&gt;</font></tt><br><tt><font \
> > face="" size="3" >&gt; Cc: 2d-dev \
> > &lt;2d-dev@openjdk.java.net&gt;</font></tt><br><tt><font face="" size="3" >&gt; \
> > Date: 2019/03/10 18:05</font></tt><br><tt><font face="" size="3" >&gt; Subject: \
> > Re: [OpenJDK 2D-Dev] [13] JDK-8219901: Noto fonts for East<br>&gt; Asian \
> > countries cannot belong to CompositeFont</font></tt><br><tt><font face="" \
> > size="3" >&gt;<br>&gt; I can sponsor this but first :<br>&gt;<br>&gt; You seem to \
> > have made "family" redundant but aren't removing it.<br>&gt; There's no point in \
> > writing it out if nothing uses it on reading.<br>&gt; So we should remove it \
> > unless you can explain why you think it should be kept.<br>&gt;<br>&gt; I don't \
> > think this (removing it) is a problem for backports or<br>&gt; compatibility of \
> > the<br>&gt; format since release name is part of the file name where we \
> > write<br>&gt; the information,<br>&gt; and such a file name will necessarily be a \
> > consequence of a feature<br>&gt; or update release<br>&gt; containing this \
> > fix.<br>&gt;<br>&gt; Where it might be an issue is testing on 13-ea builds since \
> > they all report<br>&gt; that as the version string so for testing you may need to \
> > clean out your<br>&gt; ~/.java/fonts/13-ea folder. The same is for your \
> > 13-internal private builds.<br>&gt;<br>&gt; I think this is your point when you \
> > wrote :-<br>&gt;<br>&gt;&gt; The cached font list is stored under ~/.java/fonts \
> > directory.<br>&gt;&gt; We should delete it before applying the \
> > fix.<br>&gt;<br>&gt; &nbsp;So you don't need to clean everything - just your \
> > develop -internal<br>&gt; and -ea folders.<br>&gt;<br>&gt; Meanwhile I tested it \
> > .. and it seemed OK but I am still trying to join<br>&gt; up all the dots to make \
> > sure it is all correct code-wise.<br>&gt;<br>&gt; -phil<br>&gt;<br>&gt; On \
> > 2/28/19, 3:21 PM, Toshio 5 Nakamura wrote: </font></tt><br><tt><font face="" \
> > size="3" >&gt; Hi,<br>&gt;<br>&gt; Could you review the fix and may I have a \
> > sponsor for it?<br>&gt;<br>&gt; Bug: <a \
> > href="https://bugs.openjdk.java.net/browse/JDK-8219901" \
> > target="_blank">https://bugs.openjdk.java.net/browse/JDK-8219901</a><br>&gt; \
> > Webrev: <a href="http://cr.openjdk.java.net/~tnakamura/8219901/webrev.00/" \
> > target="_blank">http://cr.openjdk.java.net/~tnakamura/8219901/webrev.00/</a><br>&gt;<br>&gt; \
> > Issue:<br>&gt; Even if Google Noto fonts[1] were installed and listed by \
> > fontconfig library<br>&gt; on Linux, CompositeFont couldn't contain \
> > it.<br>&gt;<br>&gt; Fix description:<br>&gt; \
> > "src/java.desktop/share/classes/sun/font/CompositeFont.java" (l. 296)<br>&gt; \
> > validates the target font by comparing names. But, the current code<br>&gt; \
> > compared FamilyName with FullName (Font.getFontName()).<br>&gt; Then, Noto font \
> > was treated as invalid.<br>&gt; \
> > "src/java.desktop/unix/classes/sun/font/FcFontConfiguration.java"<br>&gt; should \
> > provide FullName.<br>&gt;<br>&gt; The cached font list is stored under \
> > ~/.java/fonts directory.<br>&gt; We should delete it before applying the \
> > fix.<br>&gt;<br>&gt; This fix is possible to change the default font, if \
> > CompositeFont<br>&gt; is used (especially under Ubuntu18.04 and East Asian \
> > settings).<br>&gt; But, I believe the fixed behavior is correct.<br>&gt;<br>&gt; \
> > [1] <a href="https://www.google.com/get/noto/" \
> > target="_blank">https://www.google.com/get/noto/</a><br>&gt;<br>&gt; \
> > Thanks,<br>&gt; Toshio Nakamura</font></tt></p></blockquote>
<div dir="ltr" >&nbsp;</div></div><BR>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic