이탤릭 속성에서는 antialiasing 을 끄고 싶습니다.

랜덤여신의 이미지

이탤릭 속성에서는 antialiasing 을 끄고 싶습니다.

어제 약간의 삽질 끝에 Fakebold 를 쓰는 데 성공했습니다. :D
그런데, 보시다시피, 이탤릭체의 경우는 AA 를 켜는 것이 더 나은 것 같습니다.
font.conf 에서 'slant' 속성 같은 것을 넣어 보기도 했는데 잘 안되네요...

    <match target="font">
        <test name="family">
            <string>Gulim</string>
            <string>GulimChe</string>
        </test>
        <test name="pixelsize" compare="less">
            <double>17.0</double>
        </test>
        <test name="pixelsize" compare="more">
            <double>8.0</double>
        </test>
        <edit name="antialias">
            <bool>false</bool>
        </edit>
        <edit name="spacing" mode="assign">
            <int>0</int>
        </edit>
    </match>

제 font.conf(local.conf) 의 일부입니다. 어떻게 수정해야(또는 추가해야) 이탤릭체의 경우에는 AA 를 켤 수가 있을까요?

File attachments: 
첨부파일 크기
Image icon antial_yes.png117.29 KB
Image icon antial_no.png114.3 KB
정태영의 이미지

Quote:
slant Int Italic, oblique or roman

흠 이렇게 되있군요..

Quote:
Constant Property Value
-------------------------------------
light weight 0
medium weight 100
demibold weight 180
bold weight 200
black weight 210
roman slant 0
italic slant 100
oblique slant 110
proportional spacing 0
mono spacing 100
charcell spacing 110
unknown rgba 0
rgb rgba 1
bgr rgba 2
vrgb rgba 3
vbgr rgba 4
none rgba 5

상수값이 저렇게 정의되어 있으므로..

 ? <match target="font"> 
? ? ? ? <test name="family"> 
? ? ? ? ? ? <string>Gulim</string> 
? ? ? ? ? ? <string>GulimChe</string> 
? ? ? ? </test> 
? ? ? ? <test name="pixelsize" compare="less"> 
? ? ? ? ? ? <double>17.0</double> 
? ? ? ? </test> 
? ? ? ? <test name="pixelsize" compare="more"> 
? ? ? ? ? ? <double>8.0</double> 
? ? ? ? </test> 
? ? ? ? <test name="slant" compare="more_eq"> 
? ? ? ? ? ? <int>100</int> 
? ? ? ? </test> 
? ? ? ? <edit name="antialias"> 
? ? ? ? ? ? <bool>false</bool> 
? ? ? ? </edit> 
? ? ? ? <edit name="spacing" mode="assign"> 
? ? ? ? ? ? <int>0</int> 
? ? ? ? </edit> 
? ? </match>

정도면 될 듯 하군요...
흠 근데.. 8.0~17.0 사이즈의 aa를 끄시려고 한거라면.. test qual="all" 정도로 하셔야 할걸요 :) (물론 italic 관련된.. 거는 따로 빼셔야 할거구요..)

qual 값은 기본으로 any이니까요..
뭐 자세한건 fontconfig 문서를..
..

오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...

http://mytears.org ~(~_~)~
나 한줄기 바람처럼..

랜덤여신의 이미지

방금... man 페이지를 보고 가능한 모든 경우의 설정을 시도해 보았습니다. -_-;;
한 50번쯤 테스트해 보니... 다음이 설정으로 되더군요. ^o^

<match target="font">
        <test name="family">
            <string>Gulim</string>
            <string>GulimChe</string>
        </test>
        <test name="pixelsize" compare="less">
            <double>19.0</double>
        </test>
        <test name="pixelsize" compare="more">
            <double>11.0</double>
        </test>
        <edit name="antialias" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="spacing" mode="assign">
            <int>0</int>
        </edit>
        <edit name="hinting" mode="assign">
            <bool>false</bool>
        </edit>
    </match>
    <match target="font">
        <test name="family">
            <string>Gulim</string>
            <string>GulimChe</string>
        </test>
        <test qual="any" name="slant" mode="eq">
            <const>oblique</const>
        </test>
        <edit name="antialias" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
    </match>

이탤릭 부분을 같이 쓰지 않고... 떨어뜨려 놨더니 되네요...

정태영님 답변 감사드립니다. (__)

음, 그런데, qual 값을 all 로 안했는데도... 동작을 하는군요.
좀 더 알아봐야겠습니다...

정태영의 이미지

흐흐 테스트를 안해봐서 (_ _*)
흠 근데.. more_eq 로 하고.. <int>100</int> 로 하시면.. (<const>italic</const> 로 하시던가..)

italic과.. oblique가 다 해당되겠지만 +_+
아니라면.. italic은 해당 안될듯 한데요 +_+

오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...

http://mytears.org ~(~_~)~
나 한줄기 바람처럼..

랜덤여신의 이미지

정태영 wrote:
흐흐 테스트를 안해봐서 (_ _*)
흠 근데.. more_eq 로 하고.. <int>100</int> 로 하시면.. (<const>italic</const> 로 하시던가..)

italic과.. oblique가 다 해당되겠지만 +_+
아니라면.. italic은 해당 안될듯 한데요 +_+

그렇게 하니까... AA 가 꺼져버렸습니다. -_-!
이상하군요... 이론상으로는... more_eq 하면... 되야 하는데?
more_eq 와 <int>100</int> 로 바꿔 보았거든요...
그냥 둘다 따로따로 써버렸습니다. -o-

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.