Thursday, May 20, 2021

Making your own album 34

click the 'Documents' header to see previous entries
https://rainbowstampsandcoins.blogspot.com/search/label/documents    

6.2.1.3     Foreign languages

Open Test Design 14a, delete everything below the line :ALBUM_DEFINE_FONT, and save as Test Design 14b.

Of course you are free to type whatever you want in your texts in AlbumEasy 4.2.1, as long as you use the latin alphabet, the program will accept. But there is more, also texts in Cyricllic (Russian, Bulgarian, … and Hebre, can be typed in most of the available fonts.

If you like, or need to use Chinese, Arab, Japanese, Korean, …. You will need extra support. The font that provides this support is UN_BATANG and … is an optional font. This means, we can add it in as an extra Album_Define_Font.
REMARK : AlbumEasy 4.2.1 allows us to add multiple additional fonts, beside the default available ones.
Even if we only need one line in a special font, we have to put it in the album settings and choose a reference code (3 letters) in order to use it later on.

Add the new fonts in the album-settings in Test Design 14b
Copy-paste as well, the rest of the commands, including the foreign characters.

ALBUM_DEFINE_FONT (DJV "DejaVu Sans")

ALBUM_DEFINE_FONT(UN_BATANG "Un Batang")

PAGE_START
PAGE_TEXT (HN 10 "\nThis exercise shows non-latin fonts\n"\

"Therfore, the Unicocde (UTF-8) be selected in the general settings of AlbumEasy 4.2.1 \nbut this is normally a default setting.”)
COLOUR_PAGE_TEXT(red)

PAGE_TEXT (HN 10 "The next two lines show Cyrillic and Hebrew letters, they are included in the DejaVu Sans font:" 3.0)
COLOUR_PAGE_TEXT(black)

PAGE_TEXT (DJV 14 "Cyrillic: АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ" 1.0)
PAGE_TEXT (DJV 14 "Hebrew:
תשרקצץפףעסנןמםלכךיטחזוהדגבא")

COLOUR_PAGE_TEXT(red)
PAGE_TEXT (HN 10 "Un Batang makes it possible to use certain Chinese, Japanese (katakana en hiragana) and Korean characters:" 3.0)

COLOUR_PAGE_TEXT(black)

PAGE_TEXT (UN_BATANG 12 "This is traditional Chinese text: 這是繁體中文文本" 1.0)
PAGE_TEXT (UN_BATANG 12 "This is Japanese text:
これは日本語のテキストです" 1.0)

PAGE_TEXT (UN_BATANG 12 "This is Korean text: 이것은 한국어 텍스트입니다.")

REMARK : when inserting the text above, the Korean signs will not be shown in the program field, but will appear in the PDF!

Generate the page, and see the PDF. Close afterwards

6.2.1.4     Fantasy fonts

Online, lots of fantasy fonts can be found too, these can be useful in a theme collection.

If you like to use these, or others, its wise to make a folder ‘fonts’ in the folder ‘Album Easy’, download the fonts you like to use, and save them there.
Fonts have the extention .TTF  (True Type Font) – mind the correct name of the font because this is needed when you use the ALBUM_DEFINE_FONT – command.
As these codes are non-default, choose a 4(to 12) letter code to define them.

REMARK : downloaded TTF-files are not directly usable on the computer.
Once downloaded, you need to open the ttf-file,

Automatically a document will open, showing all letters of the alphabet, like this :
“The quick brown fox jumps over the lazy dog. 1234567890”


As you see on top of the image above, you can click ‘install’ to make it available on your computer, and therefore also in AlbumEasy 4.2.

Below the buttons, you also see the name of the font (here DALMATIAN) this and only this name you need to use in the Album_Define_Font. Of course the reference code you can choose : DALM, DALMA, DALMATIAN, … (4 to 12 letters).
The font, in which I wrote ‘Coca-cola’ is named : LOKI COLA ! 

add the font(s) you like for your album to the album settings - with the chosen reference:
ALBUM_DEFINE_FONT(DALM "Dalmatian")

to be continued...

previous part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-33.html
next part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-35.html

No comments: