Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 2.4, 2.6, 2.7
    • None
    • None
    • None

    Description

      Combining chars (above and below main char) render shifted. For instance:





      ọ̈

       

      Combining char renders shifted to the left or right depends on the font.

      Attachments

        1. shifted-1.pdf
          39 kB
          Alexander Dyuzhev
        2. shifted.fo-1.xml
          1 kB
          Alexander Dyuzhev
        3. image-2022-05-29-22-24-51-772.png
          36 kB
          Alexander Dyuzhev
        4. image-2022-04-30-13-54-23-021.png
          2 kB
          Alexander Dyuzhev
        5. image-2022-04-30-13-54-09-030.png
          2 kB
          Alexander Dyuzhev
        6. image-2022-04-29-11-55-20-495.png
          3 kB
          Alexander Dyuzhev
        7. image-2022-04-29-11-54-27-704.png
          3 kB
          Alexander Dyuzhev
        8. image-2022-04-29-11-53-00-968.png
          2 kB
          Alexander Dyuzhev
        9. image-2022-04-26-08-56-51-840.png
          15 kB
          Alexander Dyuzhev
        10. fop.xconf
          2 kB
          Alexander Dyuzhev

        Issue Links

          Activity

            jagruti.frank@gmail.com J Frank added a comment - - edited


            ọ̈

            try using following unicode for above for font cambria

            <fo:block>&#x0148;</fo:block>
            <fo:block>&#x0147;</fo:block>
            <fo:block>&#x00d6;</fo:block>  
            <fo:block font-family="Times New Roman">     
                            <fo:block>&#x0147; </fo:block>
                            <fo:block>&#x0148; </fo:block>
                            <fo:block>&#x00f6;</fo:block>
            </fo:block>
            jagruti.frank@gmail.com J Frank added a comment - - edited n̑ N̑ ọ̈ try using following unicode for above for font cambria <fo:block> &#x0148; </fo:block> <fo:block> &#x0147; </fo:block> <fo:block> &#x00d6; </fo:block> <fo:block font-family= "Times New Roman" >                       <fo:block> &#x0147; </fo:block>                 <fo:block> &#x0148; </fo:block>                 <fo:block> &#x00f6; </fo:block> </fo:block>
            jagruti.frank@gmail.com J Frank added a comment - - edited

            Suggestion: is to use unicode from ttf file to render the glyph.

            if the symbol is not found please use another font

            jagruti.frank@gmail.com J Frank added a comment - - edited Suggestion: is to use unicode from ttf file to render the glyph. if the symbol is not found please use another font
            dyuzhev Alexander Dyuzhev added a comment - - edited

            jagruti.frank@gmail.com thank you for the answer. I've tried:

            <fo:block font-family="Times New Roman">
                <fo:block>Ň</fo:block>
                <fo:block>ň</fo:block>
                <fo:block>ö</fo:block>
            </fo:block>

             

            renders as:

            But I need:

            (renders in MS Word in Times New Roman)

            and

            (renders in MS Word in Cambria)

            dyuzhev Alexander Dyuzhev added a comment - - edited jagruti.frank@gmail.com thank you for the answer. I've tried: <fo:block font-family="Times New Roman">     <fo:block>Ň</fo:block>     <fo:block>ň</fo:block>     <fo:block>ö</fo:block> </fo:block>   renders as: But I need: (renders in MS Word in Times New Roman) and (renders in MS Word in Cambria)
            jagruti.frank@gmail.com J Frank added a comment -

            ok, will check in ttf, are you able to read ttf file?

            jagruti.frank@gmail.com J Frank added a comment - ok, will check in ttf, are you able to read ttf file?
            jagruti.frank@gmail.com J Frank added a comment -

            Are you able to find unicode in this list for the required characters?

            https://www.fileformat.info/info/unicode/font/cambria/list.htm

            jagruti.frank@gmail.com J Frank added a comment - Are you able to find unicode in this list for the required characters? https://www.fileformat.info/info/unicode/font/cambria/list.htm

            No, there aren't such characters. Therefore I put special combining chars after main character:

            dyuzhev Alexander Dyuzhev added a comment - No, there aren't such characters. Therefore I put special combining chars after main character:
            jagruti.frank@gmail.com J Frank added a comment -

            ok, I will check, thanks for info dyuzhev 

            jagruti.frank@gmail.com J Frank added a comment - ok, I will check, thanks for info dyuzhev  
            ssteiner Simon Steiner added a comment - - edited

            ARIALUNI.TTF is in the center for <fo:block>ọ̈</fo:block>

            ssteiner Simon Steiner added a comment - - edited ARIALUNI.TTF is in the center for <fo:block>ọ̈</fo:block>
            ssteiner Simon Steiner added a comment -

            It seems that Combining Dot Below position is determined by the font, it will vary.
            https://www.compart.com/en/unicode/U+0323
            Some examples
            http://www.unicode-symbol.com/u/0323.html

            ssteiner Simon Steiner added a comment - It seems that Combining Dot Below position is determined by the font, it will vary. https://www.compart.com/en/unicode/U+0323 Some examples http://www.unicode-symbol.com/u/0323.html

            Word renders Combining Dot Below ok except Courier New font:

             

             

             

            dyuzhev Alexander Dyuzhev added a comment - Word renders Combining Dot Below ok except Courier New font:      
            jagruti.frank@gmail.com J Frank added a comment - - edited

            Can you share fop.xconf, language you are trying to generate pdf, name of operating system please?

             

            jagruti.frank@gmail.com J Frank added a comment - - edited Can you share fop.xconf, language you are trying to generate pdf, name of operating system please?  
            jagruti.frank@gmail.com J Frank added a comment -

            Some observation : when mapping  ̑ 'inverted breve' it renders as shifted even with char o

            jagruti.frank@gmail.com J Frank added a comment - Some observation : when mapping  ̑ 'inverted breve' it renders as shifted even with char o

            > Can you share fop.xconf,

            fop.xconf

             

            >  language you are trying to generate pdf,

            "en"

            <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en">

             

            >name of operating system please?

             

            Windows 7 64-bit with latest updates.

             

             

            dyuzhev Alexander Dyuzhev added a comment - > Can you share fop.xconf, fop.xconf   >  language you are trying to generate pdf, "en" <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en">   >name of operating system please?   Windows 7 64-bit with latest updates.    
            jagruti.frank@gmail.com J Frank added a comment -

            please confirm which language has these characters? CJK characters I believe





            ọ̈

             

             

            jagruti.frank@gmail.com J Frank added a comment - please confirm which language has these characters? CJK characters I believe n̑ N̑ f̀ F̀ ọ̈ ḥ    
            ssteiner Simon Steiner added a comment - FOP-2969
            jagruti.frank@gmail.com J Frank added a comment -

            Please remove language xml:lang="en" from fo and try it with the fix  for FOP-2969

            jagruti.frank@gmail.com J Frank added a comment - Please remove language xml:lang="en" from fo and try it with the fix  for FOP-2969

            > please confirm which language has these characters? CJK characters I believe

             

            These characters are from ISO 9 transliteration table between Cyrillic and Latin -  https://en.wikipedia.org/wiki/ISO_9#Transliteration_table.

             

            > Please remove language xml:lang="en" from fo and try it with the fix  for FOP-2969

             

            ok, thanks. I'll try, but resulted PDF should be PDF/UA compliance, therefore I can't remove the xml:lang attribute (https://xmlgraphics.apache.org/fop/2.4/accessibility.html).

             

            dyuzhev Alexander Dyuzhev added a comment - > please confirm which language has these characters? CJK characters I believe   These characters are from ISO 9 transliteration table between Cyrillic and Latin -   https://en.wikipedia.org/wiki/ISO_9#Transliteration_table .   > Please remove language xml:lang="en" from fo and try it with the fix  for FOP-2969   ok, thanks. I'll try, but resulted PDF should be PDF/UA compliance, therefore I can't remove the xml:lang attribute ( https://xmlgraphics.apache.org/fop/2.4/accessibility.html).  
            ssteiner Simon Steiner added a comment -

            what about
            xml:lang="none"

            ssteiner Simon Steiner added a comment - what about xml:lang="none"

            I can't set xml:lang="none", because I have to produce Arabic PDF and need to set xml:lang="ar" for correct Arabic fonts displaying.

             

            dyuzhev Alexander Dyuzhev added a comment - I can't set xml:lang="none", because I have to produce Arabic PDF and need to set xml:lang="ar" for correct Arabic fonts displaying.  
            ssteiner Simon Steiner added a comment -

            You would need to use a font that supports the xml:lang you use

            ssteiner Simon Steiner added a comment - You would need to use a font that supports the xml:lang you use

            How can I check that font supports the xml:lang? Is there an attribute/property in the font?

            For instance, if xml:lang="ar", then how can I check the font?

            dyuzhev Alexander Dyuzhev added a comment - How can I check that font supports the xml:lang? Is there an attribute/property in the font? For instance, if xml:lang="ar", then how can I check the font?
            ssteiner Simon Steiner added a comment -

            The font vendor may list the languages for example at:
            https://docs.microsoft.com/en-us/typography/font-list/cambria

            ssteiner Simon Steiner added a comment - The font vendor may list the languages for example at: https://docs.microsoft.com/en-us/typography/font-list/cambria

            I've set xml:lang="en" for fo:root and enclose char + combining char into <fo:inline xml:lang="none">...</fo:inline>, and applied the patch from FOP-2969. And it solved my issue.

            Thanks!

            dyuzhev Alexander Dyuzhev added a comment - I've set xml:lang="en" for fo:root and enclose char + combining char into <fo:inline xml:lang="none">...</fo:inline>, and applied the patch from FOP-2969 . And it solved my issue. Thanks!

            People

              Unassigned Unassigned
              dyuzhev Alexander Dyuzhev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: