iOS Question How to use a custom font inside a WebView

Discussion in 'iOS Questions' started by hanyelmehy, Jun 17, 2015.

  1. hanyelmehy

    hanyelmehy Active Member Licensed User

    How to use a custom font inside a WebView
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. hanyelmehy

    hanyelmehy Active Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

    You need to set the font in the page CSS code.
     
  5. hanyelmehy

    hanyelmehy Active Member Licensed User

    i do that ,but maybe the problem that font not shown the same in all browsers (when tested on desktop) ??
    i there is any way to make justify TextAlignment with TextView ?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    How is it related to the desktop?

    There is no simple way to justify the text in a label or TextView.
     
  7. hanyelmehy

    hanyelmehy Active Member Licensed User

    How is it related to the desktop?
    when test same html with chrome for example some character not show correctly ,other wise when test with MS explorer every thing show ok ,so maybe ios webview do the same (in my case some character show correctly in webview ,other wise in TextView every thing is ok ,maybe because i use complicated Arabic font)
    There is no simple way to justify the text in a label or TextView.
    can you please guide me to the hard way
     
Loading...