Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with my font #667

Closed
JBR69 opened this issue Nov 22, 2016 · 4 comments
Closed

Problem with my font #667

JBR69 opened this issue Nov 22, 2016 · 4 comments

Comments

@JBR69
Copy link
Contributor

JBR69 commented Nov 22, 2016

Hi,

I have a problem with my font configured in YAML (I must use the font Cuprum).

base:
  ...
  font_family: Cuprum
  ...

conum:
  font_family: M+ 1mn
  font_color: $literal_font_color
  font_size: $base_font_size
  line_height: 4 / 3

But when my adoc contains conum, I have this error

F:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:209:in `update_output_based_on_last_fragment': Prawn::Errors::CannotFit (Prawn::Errors::CannotFit)

idem with second level of list (**)

* apples
* oranges
** temple
** navel
* bananas

Help me please ;-)
Jérôme

@JBR69
Copy link
Contributor Author

JBR69 commented Nov 22, 2016

Actually I modified my font with FontForge (indicated in #651) but if you have another way ...

@JBR69
Copy link
Contributor Author

JBR69 commented Nov 22, 2016

Ok for conums but what is the code of symbol for list ?

@JBR69
Copy link
Contributor Author

JBR69 commented Nov 23, 2016

Ok I found :

Bullets = {
    disc: %(\u2022),
    circle: %(\u25e6),
    square: %(\u25aa)
  }

@JBR69 JBR69 closed this as completed Nov 23, 2016
@mojavelinux
Copy link
Member

It turns out, the way I was calculating the width of the conum glyph was wrong. This will be fixed in alpha.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants