Advertisement
Guest User

infinality-settings.sh

a guest
Jan 11th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 37.51 KB | None | 0 0
  1. ##################################################################
  2. ### INFINALITY ENVIRONMENT VARIABLES FOR EXTRA RUN-TIME OPTIONS ##
  3. ##################################################################
  4. #
  5. # These environment variables require that their respective patches
  6. # from http://www.infinality.net have been applied to the Freetype
  7. # installation you are using.  They will do abolutely
  8. # nothing otherwise!
  9. #
  10.  
  11. # This file should be copied to /etc/profile.d/ for system-wide
  12. # effects and/or included in ~/.bashrc or ~/.bash_profile for per-user
  13. # effects:
  14. #
  15. #   . ~/path/to/this/file/infinality-settings.sh
  16. #
  17. # Of course, the per-user settings will override the system-wide
  18. # settings.  Default values indicated below will be used when the
  19. # environment variables below are not defined.
  20. #
  21. # When I say "Default:" below, I'm referring to the default if no
  22. # environment variables are set.  Generally this ends up being
  23. # whatever Freetype's default is set to.
  24. #
  25.  
  26.  
  27. ##################################################################
  28. # EXAMPLES
  29. #
  30. # Please see 3/4 down in this file for examples of different settings.
  31. #
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. #################################################################
  39. ################## EXPLANATION OF SETTINGS ######################
  40. #################################################################
  41.  
  42.  
  43.  
  44. ##################################################################
  45. # SET_XFT_SETTINGS
  46. #
  47. # Should the below Xft settings be set globally by this script?  (true/false)
  48.  
  49. SET_XFT_SETTINGS=true
  50.  
  51. # XFT settings are like a red-headed stepchild that should be beaten severely.  
  52. # These only affect legacy programs, and *parts* of some modern programs like
  53. # google-chrome.  We only deal with these settings because we have to, otherwise
  54. # crap will slip by.  I recommend using hintslight and autohint as the defaults
  55. # normally in local.conf.  The reason hintfull and autohint:0 is needed here  
  56. # because otherwise some programs will occassionally request slight hinting for
  57. # a truetype font. When a program does this, Freetype automatically uses the
  58. # autohinter, when you may actually want it to be rendered with the TT hinter,
  59. # (if specified in local.conf).  So setting this to hintfull guarantees that the
  60. # TT font will be rendered with the TT hinter (assuming it is specified in
  61. # /etc/fonts/local.conf to be rendered that way.)  For TT fonts that you want
  62. # rendered with autohint, specifiying that in the /etc/fonts/local.conf
  63. # should be enough.  But you might think that by setting this to hintfull
  64. # that it's going to use Freetype's full autohinting (which we *completely*
  65. # avoid) for fonts you want autohinted.  This is where
  66. # INFINALITY_FT_AUTOFIT_FORCE_SLIGHT_HINTING comes in.  It tells freetype to
  67. # use slight hinting on fonts set for autohinting, even if the program requests
  68. # full autohinting.  Freetype's full hinting only looks OK under certain
  69. # circumstances.  The goal of infinality is to make infinality hinting look
  70. # good all the time.
  71.  
  72. XFT_SETTINGS="
  73. Xft.antialias:  1
  74. Xft.autohint:   0
  75. Xft.dpi:        96
  76. Xft.hinting:    1
  77. Xft.hintstyle:  hintfull
  78. Xft.lcdfilter:  lcddefault
  79. Xft.rgba:       rgb
  80. "
  81.  
  82. if [ "$SET_XFT_SETTINGS" = "true" ]; then
  83.   echo "$XFT_SETTINGS" | xrdb -merge > /dev/null 2>&1
  84. fi
  85.  
  86.  
  87.  
  88. ##################################################################
  89. # INFINALITY_FT_FILTER_PARAMS
  90. #
  91. # This is a modified version of the patch here:
  92. # http://levelsofdetail.kendeeter.com/2008/12/dynamic_fir_filter_patch.html
  93. #
  94. # Allows you to adjust the FIR filter at runtime instead of at
  95. # compile time.  The idea is to have values add up to 100, and be
  96. # symmetrical around the middle value.  If the values add up to
  97. # more than 100, the glyphs will appear darker.  If less than 100,
  98. # lighter.  I recommend using this method to make glyphs darker
  99. # or lighter globally as opposed to using the gamma option (see note in
  100. # the gamma option).
  101. #
  102. # Here are some samples of various filter parameters:
  103. #
  104. # (this has been changed to use integers between 0 and 100 to
  105. #  avoid problems with regional differences like comma for decimal point)
  106. #
  107. #
  108. # Strong Extra Smooth  "15 20 30 20 15"  (extra smooth, natural weight)
  109. # Extra Smooth         "20 20 30 20 20"  (extra smooth, extra weight)
  110. # Smooth               "15 20 32 20 15"  (smooth, natural weight)
  111. # Stronger Gibson      "11 22 38 22 11"  (smooth, extra weight)          
  112. # Gibson               "11 22 33 22 11"  (smooth, natural weight)
  113. # Freetype Light       "00 33 34 33 00"  (sharp, natural weight)         # freetype's "light" LCD filter
  114. # Freetype Default     "06 25 44 25 06"  (sharp, extra weight)           # freetype's default
  115. # Extra Sharp          "00 35 35 35 00"  (extra sharp, extra weight)     # freetype's "light" LCD filter on acid
  116. #
  117. #
  118. # Windows uses something more sharp, maybe along the lines of Freetype's default
  119. #
  120. # Default if no ENV_VARS present:     [Freetype's default]
  121. # Recommended: "11 22 38 22 11"       (too dark / smooth for some)
  122. #
  123. # Example 1:  export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  124. #
  125.  
  126. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  127.  
  128.  
  129.  
  130. ##################################################################
  131. # INFINALITY_FT_STEM_ALIGNMENT_STRENGTH
  132. #
  133. # This performs analysis on each glyph and determines an amount
  134. # to shift the glyph, left or right, so that it aligns better to
  135. # pixel boundaries.
  136. #
  137. # This results in subtley cleaner looking stems, at the expense of
  138. # proper distances between glyphs.  This is only active for sizes
  139. # 10 px or greater and does not apply to bold or italic fonts.
  140. #
  141. # There are also exceptions on a small number of fonts that I've
  142. # not been able to render nicely with alignment enabled.  In those
  143. # cases, a forced translation is applied instead.
  144. #
  145. # Possible values:
  146. # 0 through 100 - think of as percentage of strength
  147. #
  148. # 0 corresponds to no shifting whatsoever.  In other words, OFF.
  149. #
  150. # 100 corresponds to a full move to a snap zone defined by
  151. #   the snapping algorithm, be it left or right.  This
  152. #   is the full amount any glyph could be moved in order to make it
  153. #   align to the pixel.
  154. #
  155. # Values inbetween act as caps.  If the algorithm determines that it
  156. # wants to move the glyph .33 of a pixel to the left, but the value
  157. # is set to 50 (i.e. 50%), then the maximum move that would be allowed
  158. # is 50% of half a pixel, in other words .25.  So instead of .33 the
  159. # glyph is moved .25 of a pixel.
  160. #
  161. # For a subtle effect that doesn't dramatically affect the glyph, use
  162. # 25 for this and 25 for INFINALITY_FT_STEM_FITTING_STRENGTH
  163. #
  164. # Default if no ENV_VARS present:     0
  165. # Recommended if you want to use it:   100
  166.  
  167. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25
  168.  
  169.  
  170.  
  171. ##################################################################
  172. # INFINALITY_FT_STEM_FITTING_STRENGTH
  173. #
  174. # This performs analysis on each glyph and determines an amount
  175. # to horizontally scale the glyph, so that stems align better to
  176. # pixel boundaries.  An emboldening (or anti-emboldening) is
  177. # performed afterward to account for stem width exaggeration.
  178. #
  179. # This results in subtley cleaner looking fonts, at the expense of
  180. # proper distances between glyphs and slightly misshapen glyphs.  
  181. # This is only active for sizes 10 px or greater and does not
  182. # apply to bold or italic fonts.
  183. #
  184. # There are also exceptions on a small number of fonts that I've
  185. # not been able to render nicely with fitting enabled.  In those
  186. # cases, a forced translation is applied instead.
  187. #
  188. #
  189. # Possible values:
  190. # 0 through 100 - think of as percentage of strength
  191. #
  192. # 0 corresponds to no stretching whatsoever.  In other words, OFF.
  193. #
  194. # 100 corresponds to a full pixel stretch, be outward or inward.  This
  195. #   is the full amount any glyph could be stretched in order to make it
  196. #   align to a pixel boundary.  Which direction is chosen is part
  197. #   of the art of what I'm trying to do in the code.  ;)
  198. #
  199. #
  200. # Values inbetween act as caps.  If the algorithm determines that it
  201. # wants to stretch the glyph .75 of a pixel outward, but the value
  202. # is set to 50 (i.e. 50%), then the maximum move that would be allowed
  203. # is 50% of a pixel, in other words .50.  So instead of .75 the
  204. # glyph is stretched .50 of a pixel.
  205. #
  206. # For a subtle effect that doesn't dramatically affect the glyph, use
  207. # 25 for this and 25 for INFINALITY_FT_STEM_FITTING_STRENGTH
  208. #
  209. # Default if no ENV_VARS present:     0
  210. # Recommended if you want to use it:   100
  211.  
  212. export INFINALITY_FT_STEM_FITTING_STRENGTH=25
  213.  
  214.  
  215.  
  216. ##################################################################
  217. # INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE
  218. #
  219. # This allows you to set a ppem at which alignment and fitting
  220. # will reach 100%.  As glyphs become larger, more dramatic
  221. # snapping will not affect the glyph shape as much, so it makes
  222. # sense to allow this.  
  223. #
  224. # For fonts that are 10 ppem, the values set above for
  225. # INFINALITY_FT_STEM_ALIGNMENT_STRENGTH and
  226. # INFINALITY_FT_STEM_FITTING_STRENGTH will be used.  As the ppem
  227. # gradually becomes larger, so will the strength settings, and
  228. # they will reach 100% at the ppem you specify here.
  229. #
  230. # This is a simple linear scale.
  231. #
  232. # Possible values:
  233. # 0 means to not use this feature
  234. #
  235. # 11 and up will set the 100% level to that ppem value
  236. #
  237. # Anything else is officially undefined, but I still bound it internally.
  238. #
  239. # Default if no ENV_VARS present:     0
  240.  
  241. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40
  242.  
  243.  
  244.  
  245. ##################################################################
  246. # INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS
  247. #
  248. # This applies largely to certain MS fonts, but some others as well.
  249. # it will apply known good settings on a font-by-font basis, regardless
  250. # of the other settings above or below.
  251. #
  252. # - Use known values for selected fonts & ppems that are known to look
  253. # ok with 100:
  254. #
  255. # INFINALITY_FT_STEM_ALIGNMENT_STRENGTH  
  256. # INFINALITY_FT_STEM_FITTING_STRENGTH
  257. #
  258. # - Use various internal tweaks like compatible widths and other
  259. # font-specific hacks.
  260. # - Use gamma, brightness or contrast adjustments automatically
  261. #     on certain fonts.  Global settings will still apply afterwards.
  262. # - Enable various forced settings on selective fonts during
  263. #     rasterization and stem_alignment.
  264. #
  265. # If set to TRUE, this will use 100 regardless of the values you have
  266. # specified above.  It will not affect fonts that are not in this
  267. # small list.
  268. #
  269. # Possible values:
  270. # FALSE means to not use this feature
  271. #
  272. # TRUE will enable this feature
  273. #
  274. # Default if no ENV_VARS present:     FALSE
  275. # Recommended:  TRUE
  276. #
  277.  
  278. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
  279.  
  280.  
  281.  
  282. ##################################################################
  283. # INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH
  284. #
  285. # This enables an algorithm found in ChromeOS for sharpening the
  286. # appearance of glyphs.  It is based off this patch:
  287. #
  288. # http://codereview.chromium.org/3298011/diff/9001/media-libs/freetype/files/freetype-2.3.11-lcd-sharpen.patches
  289. #
  290. # It gives glyphs a more "grainy" look through some gamma
  291. #  correction.  It does tend to thin out vertical stems, which
  292. #  may be a feature or a bug depending on your taste  ;)
  293. #
  294. #
  295. # Possible values:
  296. # 0 through 100 - think of as percentage of strength
  297. #
  298. # 0 corresponds to no sharpening whatsoever.  In other words, OFF.
  299. #
  300. # 25 is good for a subtle effect.
  301. #
  302. # 50 corresponds to the default ChromeOS value.
  303. #
  304. # 100 corresponds to maximum sharpening.  This usually results in
  305. #  something undesirable looking.
  306. #
  307. #
  308. # As you increase this amount, it is good to decrease the gamma (2nd value)
  309. # of INFINALITY_FT_PSEUDO_GAMMA, and possibly increase
  310. # INFINALITY_FT_STEM_FITTING_STRENGTH and
  311. # INFINALITY_FT_STEM_ALIGNMENT_STRENGTH, as it seems like the algorithm
  312. # lightens stems that aren't fully on-pixel.
  313. #
  314. # Default if no ENV_VARS present:     0
  315. # Recommended: If you're going to use this filter - 50
  316.  
  317. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  318.  
  319.  
  320.  
  321. ##################################################################
  322. # INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH
  323. #
  324. # This enables an algorithm developed with the intention to sharpen
  325. # fonts to look similarly to Windows.
  326. #
  327. # It gives glyphs a more "grainy" look, like the ChromeOS filter
  328. # except it does so more selectively.  This prevents the thinning
  329. # of vertical stems that is noticible when a blanket gamma filter
  330. # like the ChromeOS filter is applied.
  331. #
  332. # I also get a "cleaner" impression from the fonts with this Windows
  333. # style filter.  This filter was done by 100% experimentation,
  334. # and there things that could probably be improved.
  335. #
  336. # Some may argue that I shouldn't be trying to take the shortcomings
  337. # of the MS approach and bring them here.  I disagree, as part
  338. # of freedom is having the right to make your fonts look as
  339. # shitty as you'd like.  
  340. #
  341. # Using this filter does somewhat lessen the need to use stem
  342. # fitting and stem alignment, as glyphs appear sharper.
  343. #
  344. # This setting can be used at the same time as the previous chromeOS
  345. # sharpening, and happens after it in the code.
  346. #
  347. #
  348. # Possible values:
  349. # 0 through 100 - think of as percentage of strength
  350. #
  351. # 0 corresponds to no sharpening whatsoever.  In other words, OFF.
  352. #
  353. # 10-25 is good for a subtle effect while not completely decimating glyphs.
  354. #
  355. # 50-75 corresponds to probably something in the range that Windows uses.
  356. #
  357. # 100 corresponds to maximum sharpening.  
  358. #
  359. #
  360. # Using a high value for this variable along with enabling the
  361. #  fringe filter (below) almost eliminates the need
  362. #  for INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT to be set to 100,
  363. #  and can instead be set at 0.  (Setting
  364. #  INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT to 0 prevents missing
  365. #  stems in the middle of s.  The drawback is that many fonts just look
  366. #  way too sharp and grainy at this setting.  Your call.)
  367. #
  368. # Default if no ENV_VARS present:              0
  369. # Recommended if you want to use this filter:  65
  370.  
  371. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=10
  372.  
  373.  
  374.  
  375. ##################################################################
  376. # INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT
  377. #
  378. # When using autohinting, horizontal stems you'd find in E, f, T, -,
  379. # etc. are normally not snapped to full integer pixel heights, meaning
  380. # that you will get a semi-dark fringe on these stems, above or
  381. # below the black line of pixels:
  382. #
  383. # ##########
  384. # ##
  385. # ##-------
  386. # #########
  387. # ##
  388. # ##--------
  389. # ##########
  390. #
  391. # (- represents the semi-dark pixels)
  392. #
  393. # Setting this to 100 will force integer pixel heights.  Setting it to
  394. # zero will do what Freetype does by default.  Anything inbetween will
  395. # act as a weighted average of the two.  
  396. #
  397. # This is disabled when the standard width is found (via voodoo) to be
  398. # less than 1 pixel, in order to prevent the vanishing stem issues on
  399. # letters with diagonal stems like a and s.
  400. #
  401. # Under most circumstances, this should be set at 100.  If you choose to
  402. # not set it to 100, you may want to set INFINALITY_FT_FRINGE_FILTER_STRENGTH
  403. # to a non-zero value in order to reduce fringing.
  404. #
  405. #
  406. # Possible values:
  407. # 0              - default Freetype value
  408. # 100            - a full pixel
  409. #
  410. #
  411. # Default if no ENV_VARS present:     0
  412. # Recommended:                        100
  413.  
  414. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  415.  
  416.  
  417.  
  418. ##################################################################
  419. # INFINALITY_FT_USE_VARIOUS_TWEAKS
  420. #
  421. # - Force autohint when no TT instructions present.
  422. # - Artificially embolden horizontally only.
  423. # - When artificially emboldening, maintain the glyph width.
  424. # - Embolden light and thin-stemmed glyphs automatically.
  425. # - Don't sharpen italics.
  426. #
  427. # Some fonts look bad when stem aligned at certain ppems, no matter
  428. # what. I've put exceptions in to deal with these, included in
  429. # these tweaks.  Georgia and Lucida Grande are examples.
  430. #
  431. #
  432. # Possible values:
  433. # true             - enable tweaks
  434. # false            - do not enable tweaks (do Freetype default)
  435. #
  436. #
  437. # Default if no ENV_VARS present:     false
  438. # Recommended:                        true
  439.  
  440. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  441.  
  442.  
  443.  
  444. ##################################################################
  445. # INFINALITY_FT_GAMMA_CORRECTION
  446. #
  447. # This does a weighted gamma correction at the LCD filter phase
  448. # PRIOR to the LCD filter.  Unfortunately it does not however
  449. # take into account the color on which the glyph is being rendered
  450. # (or for that matter the color of the glyph),
  451. # which would need to happen in X rendering.  It is actually
  452. # using the gamma function in calculations though.
  453. #
  454. # The first value indicates a px value, the second indicates a
  455. # "gamma" value.  All sizes less than the px value will be corrected
  456. # on a weighted scale based on the second value.
  457. #
  458. # The gamma value is commonly between 0.0 and 3.0.  Due to localization
  459. # issues, the gamma value should be specified as it's actual value
  460. # multiplied by 100.  So a gamma of 1.3 would be 130.  In practice,
  461. # I'd stay between 40 and 250.
  462. #
  463. #
  464. # Values 1 through 100 will darken the glyph
  465. # Values greater than 100 will lighten the glyph
  466. #
  467. #
  468. # Example 1:  Darken glyphs that are less than 10 px. With some fonts
  469. #             even 5 or 6px is readable!
  470. # export INFINALITY_FT_GAMMA_CORRECTION="10 60"
  471. #
  472. # Example 2:  Lighten all glyphs (below 100px)
  473. # export INFINALITY_FT_GAMMA_CORRECTION="100 150"
  474. #
  475. # Example 3:  Do nothing
  476. # export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  477. #
  478. # Default:     [No gamma correction]
  479.  
  480. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  481.  
  482.  
  483.  
  484. ##################################################################
  485. # INFINALITY_FT_BRIGHTNESS
  486. #
  487. # This filter adjusts brightness, using the standard algorithm
  488. # for brightness.  It is applied AFTER the LCD filtering.
  489. #
  490. # For a Windows XP look, set brightness to something and contrast to 50
  491. # This will also tend to increase its sharpness.
  492. # These values are relative and don't really mean anything
  493. # however they are satisfactory for a range of appearances.
  494. # Another tip is to use a gamma setting of "1000 110" or something
  495. # over 100 to lighten things before processing.
  496. #
  497. # Default if no ENV_VARS present:       0
  498. # Dark XP Experience:                 -25
  499. # Light XP Experience:                 40
  500. #
  501. # Example: export INFINALITY_FT_BRIGHTNESS="-20"
  502.  
  503. export INFINALITY_FT_BRIGHTNESS="0"
  504.  
  505.  
  506.  
  507. ##################################################################
  508. # INFINALITY_FT_CONTRAST
  509. #
  510. # This filter adjusts contrast, using the standard algorithm
  511. # for contrast.  It is applied AFTER the LCD filtering.
  512. #
  513. # For a Windows XP look, set brightness to -25 and contrast to 50
  514. # This will also tend to increase its sharpness.
  515. # These values are relative and don't really mean anything
  516. # however they are satisfactory for a range of appearances.
  517. # Another tip is to use a gamma setting of "1000 110" or something
  518. # over 100 to lighten things before processing.
  519. #
  520. # Default if no ENV_VARS present:     0
  521. # Dark or Light XP Experience:        50
  522. #
  523. # Example: export INFINALITY_FT_CONTRAST="50"
  524.  
  525. export INFINALITY_FT_CONTRAST="0"
  526.  
  527.  
  528.  
  529. ##################################################################
  530. # INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH
  531. #
  532. # This filter adjusts subpixel-rendered glyphs toward grayscale.
  533. # Sometimes this is useful in getting a rendering more like
  534. # OSX.  
  535. #
  536. # Range:  Integers 0 through 100
  537. #   0 represents no filtering
  538. #   50 represents halfway between subpixel and grayscale
  539. #   100 represents completely grayscale
  540. #
  541. # Default if no ENV_VARS present:       0
  542. # Recommended, if you want to use it:  30
  543. #
  544. # Example: export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH="33"
  545.  
  546. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH="0"
  547.  
  548.  
  549.  
  550. ##################################################################
  551. # INFINALITY_FT_FRINGE_FILTER_STRENGTH
  552. #
  553. # This filter tries to remove the horizontal fringing that is found on
  554. # default autohinted glyphs (similar to OSX-rendered glyphs).
  555. # For example, an E may be rendered so that the middle horizontal
  556. # stem is 100% black, but also has a horizonal row of pixels above
  557. # it that is at 50% intensity.  This makes the glyph look dirty,
  558. # however it is technically accurate.  
  559. #
  560. # This would be useful in cases where you have
  561. # INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT set to something less than 100
  562. # but also can affect glyphs at 100, to some degree.
  563. #
  564. # Unless fonts are showing fringes in a way that annoys you, I recommend
  565. # keeping it disabled, as it can slightly interfere with smooth appearance
  566. # sometimes.
  567. #
  568. #
  569. # Range:  Integers 0 through 100
  570. #   0 represents no filtering
  571. #   50 represents a 50% reduction of detected fringes
  572. #   100 represents completely removing detected fringes
  573. #
  574. #
  575. # Default if no ENV_VARS present:       0
  576. # Recommended, if you want to use it:  100
  577. #
  578. # Example: export INFINALITY_FT_FRINGE_FILTER_STRENGTH="100"
  579.  
  580. export INFINALITY_FT_FRINGE_FILTER_STRENGTH="0"
  581.  
  582.  
  583.  
  584. ##################################################################
  585. # INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH
  586. #
  587. # This post-filter darkens horizontal stems that autohint renders as semi-dark.
  588. # Freetype will by default not force stems to render to pixel boundaries
  589. # because it results in "vanishing stems".  This happens on things like
  590. # s S a and other glyphs with center diagonal stems.  
  591. #
  592. # If you have INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT set to 100,
  593. # you're telling it to force pixel boundaries, which can result in the
  594. # vanishing stems.  To get around this problem,  I internally override the
  595. # INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT setting if the stem width
  596. # is less than a full pixel, regardless.  This causes semi-dark stems, but
  597. # at least there are stems there.
  598. #
  599. # This filter is intended to darken those semi-dark stems.  I highly
  600. # recommend using this, but setting to a low value like 10, because
  601. # it is particularly sensitive right now, and can make thin fonts
  602. # look weird otherwise.
  603. #
  604. #
  605. # Range:  Integers 0 through 100
  606. #   0 represents no darkening
  607. #   50 represents a 50% increase toward 1 pixel in height
  608. #   100 represents a full pixel of height
  609. #
  610. #
  611. # Default if no ENV_VARS present:       0
  612. # Recommended, if you want to use it:  10
  613. #
  614. # Example: export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH="10"
  615.  
  616. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH="10"
  617.  
  618.  
  619.  
  620. ##################################################################
  621. # INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH
  622. #
  623. # This post-filter darkens vertical stems less than 1 pixel that autohint
  624. # renders as semi-dark.  This applies mostly to thin fonts like
  625. # Courier New, Raleway, and fonts with the word "Light" in the title or
  626. # style.  Although what autohint is doing is technically correct, it
  627. # results in a bad looking rendering because it's too light, at small
  628. # ppems.  This filter tries to correct that.
  629. #
  630. # There is an aspect of this that is automatic, so it's safer to use
  631. # larger values for this than the above horizontal ENV_VAR.  However
  632. # setting this higher has more impact on thinner fonts.  So, I still
  633. # recommend lower values.
  634. #
  635. #
  636. # Range:  Integers 0 through 100
  637. #   0 represents no darkening
  638. #   50 represents a 50% increase (from current strength) toward 1 pixel
  639. #   100 represents a full pixel of width
  640. #
  641. #
  642. # Default if no ENV_VARS present:       0
  643. # Recommended, if you want to use it:  25
  644. #
  645. # Example: export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH="25"
  646.  
  647. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH="25"
  648.  
  649.  
  650.  
  651. ##################################################################
  652. # INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS
  653. #
  654. # This will slightly stretch some glyphs vertically between 9px
  655. # and 14px (inclusive).  Some people may find this more
  656. # aesthetically pleasing.  This only applies to fonts that are
  657. # using autohint.  I used to recommend this to be set true, but
  658. # it does mess with some (less popular) glyphs in a nasty way.
  659. #
  660. # The goal here is to increase the height of some fonts by 1 px
  661. # but leave the x-height where it is.  Arial is a good example
  662. # of this working properly.  Compare the heights of Arial, Times
  663. # and Freesans with this on, vs. TT hinted versions of Arial and
  664. # Times.
  665. #
  666. #
  667. # Possible values:
  668. # true             - enable height adjustment
  669. # false            - do not enable height adjustment
  670. #
  671. #
  672. # Default:     false
  673.  
  674. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  675.  
  676.  
  677. # Experimental emboldening values for OSX mode
  678. export INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0
  679. export INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0
  680. export INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0
  681. export INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0
  682.  
  683. #################################################################
  684. ########################### EXAMPLES ############################
  685. #################################################################
  686. #
  687. # Set the USE_STYLE variable below to try each example.
  688. # Make sure to set your style in /etc/fonts/local.conf too.
  689. #
  690. # Possible options:
  691. #
  692. # DEFAULT      - Use above settings.  A compromise that should please most people.
  693. # OSX          - Simulate OSX rendering
  694. # UBUNTU       - Simulate UBUNTU rendering
  695. # LINUX        - Generic "Linux" style - no snapping or certain other tweaks
  696. # WINDOWS      - Simulate Windows rendering
  697. # VANILLA      - Just subpixel hinting
  698. # CUSTOM       - Your own choice.  See below
  699. # ----- Infinality styles -----
  700. # CLASSIC      - Infinality rendering circa 2010.  No snapping.
  701. # NUDGE        - CLASSIC with lightly stem snapping and tweaks
  702. # PUSH         - CLASSIC with medium stem snapping and tweaks
  703. # SHOVE        - Full stem snapping and tweaks without sharpening
  704. # SHARPENED    - Full stem snapping, tweaks, and Windows-style sharpening
  705. # INFINALITY   - Settings I use
  706.  
  707. USE_STYLE="DEFAULT"
  708.  
  709.  
  710. ### NEEDS WORK ###
  711. ################# OSX STYLE #################
  712. if [ "$USE_STYLE" = "OSX" ]; then
  713.  
  714. export INFINALITY_FT_FILTER_PARAMS="03 32 38 32 03"
  715. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=25
  716. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  717. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  718. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  719. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  720. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  721. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0
  722. export INFINALITY_FT_STEM_FITTING_STRENGTH=0
  723. export INFINALITY_FT_GAMMA_CORRECTION="1000 80"
  724. export INFINALITY_FT_BRIGHTNESS="10"
  725. export INFINALITY_FT_CONTRAST="20"
  726. export INFINALITY_FT_USE_VARIOUS_TWEAKS=false
  727. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false
  728. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=0
  729. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
  730. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=false
  731. export INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0
  732. export INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=8
  733. export INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=16
  734. export INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0
  735.  
  736. fi
  737.  
  738.  
  739.  
  740. ################# UBUNTU STYLE #################
  741. if [ "$USE_STYLE" = "UBUNTU" ]; then
  742.  
  743. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  744. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  745. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  746. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  747. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  748. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  749. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  750. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0
  751. export INFINALITY_FT_STEM_FITTING_STRENGTH=0
  752. export INFINALITY_FT_GAMMA_CORRECTION="1000 80"
  753. export INFINALITY_FT_BRIGHTNESS="-10"
  754. export INFINALITY_FT_CONTRAST="15"
  755. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  756. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false
  757. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=0
  758. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
  759. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=false
  760.  
  761. fi
  762.  
  763.  
  764.  
  765. ################# LINUX STYLE #################
  766. if [ "$USE_STYLE" = "LINUX" ]; then
  767.  
  768. export INFINALITY_FT_FILTER_PARAMS="06 25 44 25 06"
  769. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  770. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  771. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  772. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  773. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  774. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  775. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0
  776. export INFINALITY_FT_STEM_FITTING_STRENGTH=0
  777. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  778. export INFINALITY_FT_BRIGHTNESS="0"
  779. export INFINALITY_FT_CONTRAST="0"
  780. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  781. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false
  782. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  783. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
  784. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=false
  785.  
  786. fi
  787.  
  788.  
  789.  
  790. ################# WINDOWS XP/7 STYLE #################
  791. if [ "$USE_STYLE" = "WINDOWS" ]; then
  792.  
  793. export INFINALITY_FT_FILTER_PARAMS="06 25 44 25 06"
  794. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  795. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=100
  796. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  797. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  798. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=65
  799. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  800. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=15
  801. export INFINALITY_FT_STEM_FITTING_STRENGTH=15
  802. export INFINALITY_FT_GAMMA_CORRECTION="1000 120"
  803. export INFINALITY_FT_BRIGHTNESS="10"
  804. export INFINALITY_FT_CONTRAST="20"
  805. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  806. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false
  807. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  808. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=30
  809. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
  810.  
  811. fi
  812.  
  813. ############### VANILLA STYLE ##############
  814. if [ "$USE_STYLE" = "VANILLA" ]; then
  815.  
  816. export INFINALITY_FT_FILTER_PARAMS="06 25 38 25 06"
  817. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  818. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  819. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=0
  820. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=0
  821. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  822. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  823. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0
  824. export INFINALITY_FT_STEM_FITTING_STRENGTH=0
  825. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  826. export INFINALITY_FT_BRIGHTNESS="0"
  827. export INFINALITY_FT_CONTRAST="0"
  828. export INFINALITY_FT_USE_VARIOUS_TWEAKS=false
  829. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false
  830. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=0
  831. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
  832. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=false
  833.  
  834. fi
  835.  
  836.  
  837. ############### CLASSIC INFINALITY STYLE ##############
  838. if [ "$USE_STYLE" = "CLASSIC" ]; then
  839.  
  840. export INFINALITY_FT_FILTER_PARAMS="06 25 38 25 06"
  841. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  842. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  843. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=0
  844. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=0
  845. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  846. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  847. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0
  848. export INFINALITY_FT_STEM_FITTING_STRENGTH=0
  849. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  850. export INFINALITY_FT_BRIGHTNESS="0"
  851. export INFINALITY_FT_CONTRAST="0"
  852. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  853. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  854. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  855. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
  856. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=false
  857.  
  858. fi
  859.  
  860.  
  861. ################# NUDGE STYLE #################
  862. if [ "$USE_STYLE" = "NUDGE" ]; then
  863.  
  864. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  865. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  866. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  867. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  868. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  869. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  870. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  871. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25
  872. export INFINALITY_FT_STEM_FITTING_STRENGTH=15
  873. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  874. export INFINALITY_FT_BRIGHTNESS="0"
  875. export INFINALITY_FT_CONTRAST="0"
  876. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  877. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  878. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  879. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=30
  880. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=false
  881.  
  882. fi
  883.  
  884.  
  885. ################# PUSH STYLE #################
  886. if [ "$USE_STYLE" = "PUSH" ]; then
  887.  
  888. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  889. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  890. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  891. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  892. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  893. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  894. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  895. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=75
  896. export INFINALITY_FT_STEM_FITTING_STRENGTH=50
  897. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  898. export INFINALITY_FT_BRIGHTNESS="0"
  899. export INFINALITY_FT_CONTRAST="0"
  900. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  901. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  902. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  903. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=30
  904. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
  905.  
  906. fi
  907.  
  908.  
  909. ################# INFINALITY STYLE #################
  910. if [ "$USE_STYLE" = "INFINALITY" ]; then
  911.  
  912. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  913. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  914. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  915. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  916. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  917. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=5
  918. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  919. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25
  920. export INFINALITY_FT_STEM_FITTING_STRENGTH=25
  921. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  922. export INFINALITY_FT_BRIGHTNESS="0"
  923. export INFINALITY_FT_CONTRAST="0"
  924. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  925. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  926. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  927. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40
  928. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
  929.  
  930. fi
  931.  
  932.  
  933. ################# SHOVE STYLE #################
  934. if [ "$USE_STYLE" = "SHOVE" ]; then
  935.  
  936. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  937. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  938. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  939. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  940. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  941. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  942. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  943. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=100
  944. export INFINALITY_FT_STEM_FITTING_STRENGTH=100
  945. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  946. export INFINALITY_FT_BRIGHTNESS="0"
  947. export INFINALITY_FT_CONTRAST="0"
  948. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  949. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  950. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  951. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
  952. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
  953.  
  954. fi
  955.  
  956.  
  957. ################# SHARPENED INFINALITY STYLE #################
  958. if [ "$USE_STYLE" = "SHARPENED" ]; then
  959.  
  960. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  961. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  962. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  963. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  964. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  965. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=65
  966. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  967. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25
  968. export INFINALITY_FT_STEM_FITTING_STRENGTH=25
  969. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  970. export INFINALITY_FT_BRIGHTNESS="0"
  971. export INFINALITY_FT_CONTRAST="0"
  972. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  973. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  974. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  975. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40
  976. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
  977.  
  978. fi
  979.  
  980.  
  981. ################# CUSTOM STYLE #################
  982. if [ "$USE_STYLE" = "CUSTOM" ]; then
  983.  
  984. export INFINALITY_FT_FILTER_PARAMS="11 22 38 22 11"
  985. export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
  986. export INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
  987. export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
  988. export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
  989. export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
  990. export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
  991. export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=100
  992. export INFINALITY_FT_STEM_FITTING_STRENGTH=100
  993. export INFINALITY_FT_GAMMA_CORRECTION="0 100"
  994. export INFINALITY_FT_BRIGHTNESS="0"
  995. export INFINALITY_FT_CONTRAST="0"
  996. export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
  997. export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
  998. export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
  999. export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
  1000. export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
  1001.  
  1002. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement