제목이나 본문의 특정 구문을 이미지로 나타내고 싶을 때는 SignWriter 모듈
제목이나 본문의 특정 구문을 이미지로 나타내고 싶을 때는 SignWriter 모듈
이 팁도 메모 수준이다. (다음에 수정 보완할 예정이다)
SignWriter 모듈 - 컨텐츠의 타이틀이나 본문의 일부를 이미지 형태로 예쁘게 표시할 수 있다.
http://drupal.org/project/signwriter
기능은 다음과 같다.
* Multiple profiles allow you to have different settings for different headings.
* Profiles can provide input filters to replace text matching a regular expression.
* Images generated can be transparent or opaque.
* Text can be positioned within a background image.
* Text can be left, right, or center aligned.
* Font size can be automatically reduced to fit the text within a specified maximum width.
* Images are cached to improve performance under high load.
* Generated images can be gif, png, jpeg, or bmp.
* Themes can use profiles configured by a user, or create their own.
* To fit text within a maximum width you can select to display multiple lines instead of reducing font size.
* Drop shadows can be added to the text.
설치법이 다소 번거로워서 메모해 두는데,
1. 드루팔 설치 폴더의 files/ 아래에 files/fonts 라고 빈 폴더를 생성한 후,
2. C:\Windows\Fonts에 있는 TTF 폰트 파일을 위 폴더에 몇 개 복사해 넣자.
3. SignWriter 모듈을 설치/활성화한 후,
4. admin/settings/signwriter 에 가 보면 설정 화면이 있다.
5. 설정 화면의 Font Search Path:에 sites/default/files/fonts 라고 입력한 후 저장하자.
7. 그런 다음 Add Profile 항목을 설정해 주면 예쁜 글씨가 나타난다.
8. 이후에 필터를 통해 컨텐츠 제목이나 본문 일부에 <signwriter> ~ </signwriter>라고 쓰면,
해당 글씨가 이미지로 변환돼 보인다.
위 그림을 보면, 다국어 폰트를 설정하는 인터페이스가 있으나
2009년 1월 기준으로 한글이나 일본어 등 동양권 언어의 표시가 되지 않았다. 아쉽다.
- Login to post comments
댓글
이와 유사한 기능을
이와 유사한 기능을 가진 모듈로,
TextImage 모듈이 있다 - http://drupal.org/project/textimage
* Support for TrueType fonts and OpenType fonts*.
* Rotate your text at any angle.
* Backgrounds:
o Define a color or simply have a transparent background.
o Use a pre-made image to integrate directly with your theme.
o Use another Textimage preset to achieve a multi-layered image (see image above).
* CCK and Views formatter integration. (Dev build only)
* Support for non-alphanumeric characters. (Dev build only)