본문 바로가기

Graphic

FreeType 예제1. GDI 이용한 글씨 출력. http://www.soenlab.com 에 있는 예제를 그대로 복붙했지만 그래도 한번만들어 봤다는것에 의미를 둔다. 핵심 소스는 아래와 같다. GDI를 이용해 글씨를 출력하기 때문에 글씨가 그려지는것이 눈에보인다. 다음에는 OpenGL을 이용해서 출력해봐야 겠다. hdc=BeginPaint(hWnd, &ps); // 폰트 읽음 error=FT_New_Face(library,"c:\\windows\\fonts\\batang.ttc",2,&face); if (error != 0) { // 에러 처리 } // 글리프 인덱스 구함 index = FT_Get_Char_Index(face,TEXT('읭')); if (index == 0) { // 에러 처리 } // 크기 설정 error=FT_Set_Char_Si.. 더보기
FreeType FreeType 홈페이지 FreeType 영문 메뉴얼 sourceforge 정보 SoEnLab FreeType 설명 리눅스나 안드로이드 환경등에서 Open GL을 이용해서 폰트를 출력할때 사용할수 있는 공개된 라이브러리이다. 아래는 홈페이지에서 제공하는 2.4.10 버전을 올려놓았다. FreeType 2.4.10 버전 FreeType 2.4.10 버전으로 만든 데모 더보기
Windows에서 OpenGL을 이용하기 위한 설명서. With thanks to Kamil Saykali of the EdCenter:This part will show how to install the glut libraries and dll's (to download it go to http://reality.sgi.com/opengl/glut3/glut3.html ) 1. After you have downloaded the glut.zip file (you should get the latest ver 3.7) unzip it into a folder 2. Inside the folder you should have:glut.dllglut32.dllglut.hglut.libglut32.lib 3. Copy both glut.dll and glut32.. 더보기