[Skip to main content](#vessel-content)

#   Some state names not in English

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 645
- Thank you received: 26
-
-
-

9 years 7 months ago -  9 years 7 months ago [\#266965](#266965) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[Some state names not in English](/forum/30-integrations/889732-some-state-names-not-in-english#266965 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi Hikashop Team,  When I create a PDF invoice and I use a Chinese, Russian or Arabic country as customer than the Invoice gave strange characters for the state names like ?????/ or rectangles.  Are there no English Names for those states?  I know I have to look for the right font into the attached PDF invoice plugin. But there is no font which does have all the characters from all languages or can show them on the right way.  The only font which can do the most is kozgopomedium / -regulaer and hysmyeongjostdmedium.  But the character separation from the state names is very wide, see image.  Is there something we can do to reduce the letter spacing? Maybe to add a class to the order / address&#95;template.php Like this:  And then add a CSS style to the invoice.php file like this?  or  But none of them works.  Kind regards, Lumiga")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0

Hi Hikashop Team,

When I create a PDF invoice and I use a Chinese, Russian or Arabic country as customer than the Invoice gave strange characters for the state names like ?????/ or rectangles.

Are there no English Names for those states?

[ ![61.jpg](/forum/attachment/37497) ](/forum/attachment/37497 "61.jpg")

I know I have to look for the right font into the attached PDF invoice plugin. But there is no font which does have all the characters from all languages or can show them on the right way.

The only font which can do the most is kozgopomedium / -regulaer and hysmyeongjostdmedium.

But the character separation from the state names is very wide, see image.

[ ![62.jpg](/forum/attachment/37498) ](/forum/attachment/37498 "62.jpg")

Is there something we can do to reduce the letter spacing?
Maybe to add a class to the order / address_template.php
Like this:

[ ![65.jpg](/forum/attachment/37500) ](/forum/attachment/37500 "65.jpg")

And then add a CSS style to the invoice.php file like this?
Code:

.state {font:stsongstdlight;}

or
Code:

.state {letter-spacing:-5px;}

But none of them works.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

- [ ![61.jpg](/forum/attachment/37497) ](/forum/attachment/37497 "61.jpg") [ ](/forum/attachment/37497?download=1 "61.jpg")
- [ ![62.jpg](/forum/attachment/37498) ](/forum/attachment/37498 "62.jpg") [ ](/forum/attachment/37498?download=1 "62.jpg")
- [ ![65.jpg](/forum/attachment/37500) ](/forum/attachment/37500 "65.jpg") [ ](/forum/attachment/37500?download=1 "65.jpg")

Last edit: 9 years 7 months ago by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODk3MzItc29tZS1zdGF0ZS1uYW1lcy1ub3QtaW4tZW5nbGlzaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

9 years 7 months ago [\#266968](#266968) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Some state names not in English](/forum/30-integrations/889732-some-state-names-not-in-english#266968 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi Hikashop Team,  When I create a PDF invoice and I use a Chinese, Russian or Arabic country as customer than the Invoice gave strange characters for the state names like ?????/ or rectangles.  Are there no English Names for those states?  I know I have to look for the right font into the attached PDF invoice plugin. But there is no font which does have all the characters from all languages or can show them on the right way.  The only font which can do the most is kozgopomedium / -regulaer and hysmyeongjostdmedium.  But the character separation from the state names is very wide, see image.  Is there something we can do to reduce the letter spacing? Maybe to add a class to the order / address&#95;template.php Like this:  And then add a CSS style to the invoice.php file like this?  or  But none of them works.  Kind regards, Lumiga")*

Hi,

I can't say much:
- the states are all in the language of their country, not in English. That's because HikaShop is a software used everywhere in the world. When you sell your products with HikaShop only in your own country, you want your customers to see the states in the country's language. And we don't have access to a database of all the states in all the languages to automatically translate them. If you want them in English, you would have to change all the states.
- the font is normally not a problem as your browser is able to display all the languages properly. However, you're using the PDF invoice plugin, which is based on the HTML2PDF library to convert the invoice to PDF and the fonts available are quite restrictive. I don't know of a font they provide which supports all the characters properly.
- having a font which would support everything properly would take hundreds of megabits which would have to be loaded each time to generate the PDF and it would crash.
- if you want to try other UTF8 fonts (it's been years last time I looked around), you can generate your own fonts and set them in the folder plugins/hikashop/attachinvoice/attachinvoice/_tcpdf_5.0.002/fonts and then add them in the plugins/hikashop/attachinvoice/attachinvoice.xml settings file. Here is an example to generate your font files compatible with the plugin, from a standard ttf font file: [ stackoverflow.com/questions/5263588/how-...ustom-fonts-in-tcpdf](http://stackoverflow.com/questions/5263588/how-to-implement-custom-fonts-in-tcpdf)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODk3MzItc29tZS1zdGF0ZS1uYW1lcy1ub3QtaW4tZW5nbGlzaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 645
- Thank you received: 26
-
-
-

9 years 5 months ago [\#272810](#272810) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[Some state names not in English](/forum/30-integrations/889732-some-state-names-not-in-english#272810 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi Hikashop Team,  When I create a PDF invoice and I use a Chinese, Russian or Arabic country as customer than the Invoice gave strange characters for the state names like ?????/ or rectangles.  Are there no English Names for those states?  I know I have to look for the right font into the attached PDF invoice plugin. But there is no font which does have all the characters from all languages or can show them on the right way.  The only font which can do the most is kozgopomedium / -regulaer and hysmyeongjostdmedium.  But the character separation from the state names is very wide, see image.  Is there something we can do to reduce the letter spacing? Maybe to add a class to the order / address&#95;template.php Like this:  And then add a CSS style to the invoice.php file like this?  or  But none of them works.  Kind regards, Lumiga")*

Hi Nicolas,

Thanks for your extensive explanation.

We try will fill in the English names manually.
In that case we have no issue with the font.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODk3MzItc29tZS1zdGF0ZS1uYW1lcy1ub3QtaW4tZW5nbGlzaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.052 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
