Results 1 to 12 of 12

Thread: Difficulty in opening the font

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Question Difficulty in opening the font

    Hello Friends

    This is my language Farsi
    Similar to Arabic
    My problem is that the font can not open this file and do a "TextBox"
    In fact, in the form of exotic displays
    My files
    VB Project Attachment 125253
    Text File 1.txt
    This form must be
    Attachment 125245
    Please help me

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Re: Difficulty in opening the font

    Hello Friends

    This is my language Farsi
    Similar to Arabic
    My problem is that the font can not open this file and do a "TextBox"
    In fact, in the form of exotic displays
    My files
    ----VB Project =Attachment 125253
    ----Text File Attachment 125255
    This form must be
    Attachment 125245
    Please help me
    Attached Images Attached Images  
    Attached Files Attached Files

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Re: Difficulty in opening the font

    Hello Friends

    This is my language Farsi
    Similar to Arabic
    My problem is that the font can not open this file and do a "TextBox"
    In fact, in the form of exotic displays
    This form must be
    Attachment 125245
    Please help me[/QUOTE]
    Attached Images Attached Images  
    Attached Files Attached Files

  4. #4
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,653

    Re: Difficulty in opening the font

    The built-in VB textbox does not support the Unicode needed to display that text.

    Krool's common controls replacement project contains a TextBoxW control that does:
    http://www.vbforums.com/showthread.p...mmon-controls)

  5. #5
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: Difficulty in opening the font

    In order for VB6 to read and display UTF-8 encoded text files, you need a routine (such as this) that reads and converts UTF-8 text files to the UTF-16 LE format that VB6 Strings uses and you also need a Unicode Edit (or Rich Edit) control (such as these).
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  6. #6

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Re: Difficulty in opening the font

    Quote Originally Posted by The trick View Post
    You can to use this font.
    ArabicUI.zip
    Thank you to guide you
    Your project is working correctly
    But my project with the font "Arial" is not even a "Script" I could not put it into practice Arabic

  8. #8

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Re: Difficulty in opening the font

    Quote Originally Posted by Bonnie West View Post
    In order for VB6 to read and display UTF-8 encoded text files, you need a routine (such as this) that reads and converts UTF-8 text files to the UTF-16 LE format that VB6 Strings uses and you also need a Unicode Edit (or Rich Edit) control (such as these).
    Thank you so much it worked

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Re: Difficulty in opening the font

    Quote Originally Posted by fafalone View Post
    The built-in VB textbox does not support the Unicode needed to display that text.

    Krool's common controls replacement project contains a TextBoxW control that does:
    http://www.vbforums.com/showthread.p...mmon-controls)
    Thank you very much to guide you

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Re: Difficulty in opening the font

    Quote Originally Posted by Bonnie West View Post
    In order for VB6 to read and display UTF-8 encoded text files, you need a routine (such as this) that reads and converts UTF-8 text files to the UTF-16 LE format that VB6 Strings uses and you also need a Unicode Edit (or Rich Edit) control (such as these).
    Thank you very much to guide you

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Apr 2015
    Posts
    19

    Re: Difficulty in opening the font

    Quote Originally Posted by The trick View Post
    You should select an Arabic codepage.
    Ops! Ko
    Thank

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width