Topic: True type font trong latex
Chào các bạn, mình search trong diễn đàn với từ khoá "true type font" nhưng không có kết quả, vậy nên mình post bài này hỏi 1 số vấn đề mong các bạn giải đáp giúp.
Hiện giờ mình đã hiện được tiếng Việt trong file pdf, tuy nhiên giờ mình muốn convert 1 số font ttf để dùng trong latex. Qua tìm hiểu mình có đọc được đoạn này:
Note that there are two (at least) methods of using TTF's with TeX. You can convert the TTF's to Postscript Type 1 fonts, and then install and use them as you would any other Type1 font. This is the method described by the document in the /info/truetype (IIRC) directory of CTAN. The problem with this is that there is always a loss of quality in the translation --- some fonts I have tried converting this way end up looking downright nasty.
Much better (and this is how the linked documents above do it) is to use the program ttf2pk — which employs the FreeType library, available for all platforms from CTAN (and, if you run Linux, it's probably already part of your system) — which creates pk files `on the fly' directly from the .ttf file, when they are needed in the document. TTF files can also be embedded directly into a PDF document, and PDFTeX can do it; the explanations are given at the links above.
Tức là có 2 cách, một là convert ttf sang pt1 nhưng cách này có bất lợi là làm mất chất lượng của font cũ trong quá trình chuyển đổi. Còn cách thứ 2 theo đánh giá của tác giả là tốt hơn, đó là sử dụng ttf2pk để tạo ra file .pk. Nhưng mình tìm trên mạng mà chưa thấy cách convert sử dụng ttf2pk.
Bạn nào biết cái này thì giúp mình với nhé
Cám ơn đã đọc bài.
Last edited by banhbaochay (05/01/2010 19:28)
