Friday, May 10, 2013

macosx & readable web pages in armenian

hi folks. everybody who has macosx installed on his/her 's apple boards faces the problem of font design of web pages in armenian. in my humble opinion the design is awful for reading and understanding the text. with this post you will be able to change it system wise.

system font for armenian language by default in macosx operating system is rendered using "Mshtakan" font. i think the default font isn't well designed in terms of readability than the font called "Arian AMU". here is the link were you can download the font pack. extract the downloaded zip file and install the fonts. after installation you will be able to see armenian pages which  include "Arian AMU" font in their css style. but i can tell you that these kind of web pages are few. for example google search does not include "Arian AMU" font and you will again see the armenian text rendered using "Mshtakan" font. so the solution is to change it permanently for the whole system. below you can find  the way to change it.

before doing instruction steps be sure that  font "Arian AMU" is installed !

Updated for OSX El Capitan

First you need to disable SIP (system integrity protection) for your system in order to be able to allow making changes in system files

How to turn off System Integrity Protection in El Capitan
  1. Click the  menu.
  2. Select Restart...
  3. Hold down command-R to boot into the Recovery System.
  4. Click the Utilities menu and select Terminal.
  5. Type
    csrutil disable
  6. Close the Terminal app.
  7. Click the  menu and select Restart....
When system has normally restarted , open Terminal and type following commands
  1. sudo plutil -convert xml1 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Resources/DefaultFontFallbacks.plist
  2. sudo sed -i ".orig" 's/Mshtakan/Arian AMU/'  /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Resources/DefaultFontFallbacks.plist
  3. sudo plutil -convert binary1 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Resources/DefaultFontFallbacks.plist
Now you need to turn  on the system integrity protection

How to turn on System Integrity Protection in El Capitan
  1. Click the  menu.
  2. Select Restart...
  3. Hold down command-R to boot into the Recovery System.
  4. Click the Utilities menu and select Terminal.
  5. Type csrutil enable
  6. Close the Terminal app.
  7. Click the  menu and select Restart....
p.s.

if you use firefox browser you do not need to change font system wise. you just need to install the fonts then open firefox , go to the preferences, under "Content" tab you will find section "Fonts & Colors", click "Advanced...", in the section "Fonts for:" check "Armenian", than change font to "Arian AMU" for the following sections "Serif:", "Sans-serif:" and "Monospace:".

bonus...
whoever prefers typing armenian in phonetic layout you can download it from here
extract archive and copy the files into the directory "/Library/Keyboard Layouts/"









No comments: