Post Reply 
Thread Rating:
  • 252 Votes - 2.74 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Curl equivalent to CSS unicode-range
08-27-2013, 01:14 AM (This post was last modified: 08-27-2013 01:17 AM by RobertShiplett.)
Post: #1
Curl equivalent to CSS unicode-range
Does anyone have an idea for a Curl equivalent to CSS unicode-range in font declaration for @font-face ?
My need is to have light hiragana and katakana but more strongly-stroked kanji characters and bold mono radical characters.
I have not been able to find font really suitable to kanji recognition for gai-jin learning nihongo no kanji .
The HTML unicode-range option in declaring a @font-face does permit the intended presentation style.

Robert Shiplett, Curlr
Fredericton NB

Visit this user's website Find all posts by this user
Quote this message in a reply
08-27-2013, 06:20 PM
Post: #2
RE: Curl equivalent to CSS unicode-range
I think it's impossible to declare font of each curl's character object like @font-face...

{define-class public FontFaceCharGraphic {inherits CharGraphic}

  def first-kanji:int = '亜' asa int
  def last-kanji:int = '腕' asa int

  field char:char

  {constructor public {default c:char, ...  }
    {construct-super c, {splice ...}}
    set self.char = c

  {method {change-style}:void
    def u = self.char asa int
    {if u >= {this-class}.first-kanji  and u <= {this-class}.last-kanji  then
        set self.font-weight = FontWeight.bold
        set self.font-weight = FontWeight.normal
    {output self.c , ":", u}

  {method public {add g:any, ...}:#Visual
    {type-switch value
    case c:char do
        set self.char = c
    {return  {super.add g, {splice ...}}}


{define-class public  StringFrame {inherits HBox}
  {constructor public {default str:String}
    {for c in str do
        {self.add {FontFaceCharGraphic c}}

{def f = {StringFrame  "fist-kanji:字[ 1-9, a-Z, ()+*, あいうえお 日本] last-kanji:腕"}}

{value f}
Find all posts by this user
Quote this message in a reply
10-23-2013, 01:00 PM (This post was last modified: 03-12-2014 01:58 PM by white123.)
Post: #3
RE: Curl equivalent to CSS unicode-range
I will let you know if this works for me Thanks and keep posting such a informative blogs.
Find all posts by this user
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Curl execute Oracle database procedure NamDH 3 2,545 04-21-2017 03:40 PM
Last Post: tdeng
  TLS通信下でCould not deserialize the object from Curl.発生 MIT 3 3,448 03-10-2017 08:35 AM
Last Post: MIT
  Protecting SSL private key in a Curl script aensys 1 1,652 02-10-2017 02:02 PM
Last Post: heavybugtracker
  curl library 7.36.0: curl_easy_perform() function call failed when used for getting a joezhao 1 2,492 10-19-2016 09:41 AM
Last Post: dyoshida
  Curl IDE からのランチャが見つかりません umemura 1 2,740 06-30-2016 10:12 AM
Last Post: umemura
  Curl RTE Install smtit 1 2,266 05-06-2016 12:36 PM
Last Post: dice256
  Curl RTE Command line smtit 1 2,487 04-19-2016 09:35 AM
Last Post: dice256
  What OS that CURL can support for deloyment? tiennv 1 4,168 08-22-2015 02:12 AM
Last Post: tdeng
  Curl RTEのPPAPIプラグインについて でり 1 3,954 06-09-2015 11:03 AM
Last Post: でり
  cURL Client app Michael-2015 1 3,450 04-16-2015 12:27 PM
Last Post: dyoshida
Forum Jump:

User(s) browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
INSERT INTO mybb_threadviews (tid) VALUES('959')