본문 바로가기

프로그래밍/라이브러리

FreeType library에서..

[그림 출처]
http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html



* origin 이란????

* FT_Face->glyph->metrics->????

horiBearingX - 1/64 pixel 단위
Left side bearing for horizontal layout. 

horiBearingY -
Top side bearing for horizontal layout.

vertBearingX -
Left side bearing for vertical layout.

vertBearingY
Top side bearing for vertical layout.
horiAdvance -
Advance width for horizontal layout.

vertAdvance -
Advance height for vertical layout.

* FT_Face->glyph->
bitmap_left - horiBearingX 의 pixel 단위 값
bitmap_top - horiBearingY 의 pixel 단위 값
(horiBearingX,Y는 1/64 픽셀 단위 이다.)
 
* FT_Face->bbox.????
 xMin, yMin, xMax, yMax - 모든 글자를 감쌀 수 있는 외접 사각형 (FT_BBox)

* FT_Face->glyph->advance
x, y - 출력을 위해 사용될 x, y 축 픽셀의 크기

* 출력하기 전에 glyph를 조작하기 위해서는 FT_Load_Char() 함수 대신 
FT_Get_Char_Index(), FT_Load_Glyph() 함수를 호출한 후 glyph의 조작, 
그 다음 FT_Render_Glyph() 함수를 호출해야하는게 아닌가 싶다.



'프로그래밍 > 라이브러리' 카테고리의 다른 글

[sqlite] ver.3 사용 예제  (0) 2014.02.25
mjpg-streamer  (0) 2013.11.16
비트맵 폰트 생성기  (0) 2011.04.15
폰트에서 point와 pixel의 관계  (0) 2011.04.13
STL string class의 연산자와 멤버 함수들  (0) 2010.10.20


Calendar
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Visits
Today
Yesterday