Announcement

Collapse
No announcement yet.

Pasting Unicode Text in JPEG

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Solved Pasting Unicode Text in JPEG

    I am trying to insert unicode text into a JPEG image, however, certain characters display as a box. I've been able to do this successfully in the past. Specifically, I'm using the JazzText font. The "flat" symbol doesn't want to correctly display. I'm not sure what has changed.

    I'm using the newest version 4.60 64-bit
    Last edited by JimChw; 29.09.2022, 06:01 PM.

    #2
    The # character is a placeholder code; so try typing $#: See Help:
    $# - add one '#' character (otherwise is # used for numbers/counters)
    Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment


      #3
      The placeholder $# seems to be for the filename or metadata. I don't see how it applies to text entered in the Insert Text function. Does this show the issue more clearly?

      Click image for larger version

Name:	InsertText.jpg
Views:	221
Size:	45.0 KB
ID:	95834

      Comment


        #4
        If you could provide a link to download the JazzText font, I can look at it, but I cannot reproduce the issue with other fonts by typing a # character in the Insert Text dialog of Irfan Paint.
        Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

        Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

        Comment


          #5
          The help text on placeholders is unclear about how $# is used in the Insert Text dialog. Can you provide an example?

          Try this font link: https://www.wfonts.com/font/jazztext

          Comment


            #6
            The font jazztext.ttf does not contain any musical symbols. You need to find a font that has these symbols.

            Click image for larger version

Name:	Unicode_Music_Flat_Sign.jpg
Views:	197
Size:	97.7 KB
ID:	95846
            I used BabelMap to show the fonts and IrfanView to make the sccreenshots and the image composition.
            Win 10/64 Home 22H2 IrfanView 4.67/64
            Hate has caused a lot of problems in this world, but it has not solved one yet. (Maya Angelou)

            Comment


              #7
              Interesting. I've been using the Windows Character Mapping app to view the fonts. Here's where I'm copying the text from to paste into the InsertText dialog.

              Click image for larger version

Name:	CharMap.jpg
Views:	192
Size:	188.2 KB
ID:	95872

              There's more to fonts than I guessed. I'm still a bit puzzled. Thanks for your help so far. While I can get a Music Flat Sign from another font, it definitely looks different. I think you've put me on a learning path. Unless someone else chimes in, I think we can table this thread for now.

              Comment


                #8
                In this exact font file linked the symbols are assigned to positions within the Western codepage, as it was done before Unicode:

                - Double Low-9 Quotation Mark -> „
                - Modifier Letter Circumflex Accent -> ˆ

                Maybe some font magic of modern Windows doesn't let them come through. I also see that the character set box is grayed out for you.

                Possible workarounds: Copy these symbols from another font, then scroll to JazzText within the dialog. Or use Edit -> Insert Text command instead of the IrfanPaint dialog.

                There is no connection to the # (number sign, pound sign). The symbol code and design are different.

                Comment


                  #9
                  There's something interesting with this font. When I look for 0x84 (dezimal 132) in Babelmap (which only shows Unicode), there's only an empty rectangle,
                  which means that no Unicode character is assinged to this place. However, if I use Jazztext in LibreOffice, I get this:
                  Click image for larger version  Name:	JazzText_char_dez132.jpg Views:	0 Size:	6,4 KB ID:	95875
                  If you use the keycode as shown above, you will get the flat sign in Irfanview, though it does not show in the dialogue window:

                  Click image for larger version  Name:	JazzText_char_dez132_IV.jpg Views:	0 Size:	102,4 KB ID:	95876
                  Win 10/64 Home 22H2 IrfanView 4.67/64
                  Hate has caused a lot of problems in this world, but it has not solved one yet. (Maya Angelou)

                  Comment


                    #10
                    Unicode matches Western only in part. The advanced punctuation marks are up in a separate block. 0x84 is for a control character. It is possible that this has caused an issue in Win 8/10 for the OP. His Charmap seems to treat this as a Unicode-incapable font because the box is disabled.

                    OP make sure you are using this exact font file you linked, not another font by the same name.
                    Attached Files
                    Last edited by j7n; 03.10.2022, 06:26 PM.

                    Comment


                      #11
                      I re-downloaded the font I posted and used the ALT-0132 shortcut (hex 84 = decimal 132) and that worked. Pasting from Character Map did not work. Pasting from BabelMap did not work (if I did it right). I believe my problem is solved. Thank you all for your help

                      Comment

                      Working...
                      X