Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't use thai language. #363

Closed
pcbimon opened this issue Jun 19, 2017 · 3 comments
Closed

I can't use thai language. #363

pcbimon opened this issue Jun 19, 2017 · 3 comments

Comments

@pcbimon
Copy link

pcbimon commented Jun 19, 2017

I have add thai font

<style>
    @font-face {
        font-family: 'THSarabunNew';
        font-style: normal;
        font-weight: normal;
        src: url("file://{{ asset('fonts/THSarabunNew.ttf') }}") format('truetype');
    }
    body {
        font-family: "THSarabunNew";
    }
</style>
<body>
    <table>
      <tr>
        <th>name</th>
        <th>email</th>
      </tr>
      @foreach ($customer as $c)
        <tr>
          <td>สวัสดี {{$c->name}}</td>
          <td>{{$c->email}}</td>
        </tr>
      @endforeach

    </table>
  </body>

Result in thai language "สวัสดี"=> "?????"

@patieru12
Copy link

Hi @pcbimon for me is generating Arabic characters I can't figure it out

@Cyrille37
Copy link

I found howto make Thaï working alone and mixed with Latin:

@HimakarPV
Copy link

HimakarPV commented Sep 16, 2017

I am trying to use Kanit thai from google fonts. It didn't worked out for me. I am trying all the options suggesting by users here but no way for it.
Here is my code:

 /* kanit-regular - thai */
  @font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 400;
    src: local('Kanit Regular'), local('Kanit-Regular'),
    url({{asset('storage/fonts/kanit-v2-thai-regular.ttf')}}) format('truetype'), /* Safari, Android, iOS */
  }
.thaifont{
    font-family: 'Kanit', sans-serif;
  }

In cache:

'kanit' => array(
    'normal' => $fontDir . '/191b5ff42fcf9b80af5b3791fc5c339c',
  ),

There is no error it shows but thai words are replaced by '????'

@pcbimon pcbimon closed this as completed Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants