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

Add font viewing section and option to rifle #1443

Merged
merged 12 commits into from Jan 19, 2019
Merged

Conversation

zaeph
Copy link
Contributor

@zaeph zaeph commented Jan 14, 2019

ISSUE TYPE

  • Improvement/feature implementation

RUNTIME ENVIRONMENT

  • Operating system and version: Arch
  • Terminal emulator and version: Terminator
  • Python version: 3.7.2
  • Ranger version/commit: 1.9.2
  • Locale: en_GB

CHECKLIST

  • The CONTRIBUTING document has been read [REQUIRED]
  • All changes follow the code style [REQUIRED]
  • All new and existing tests pass [REQUIRED]
  • Changes require config files to be updated
    • Config files have been updated
  • Changes require documentation to be updated
    • Documentation has been updated
  • Changes require tests to be updated
    • Tests have been updated

DESCRIPTION

Adds fontforge as a default option for previewing fonts, but would benefit from adding other common options for previewing fonts.

MOTIVATION AND CONTEXT

There wasn't any option to preview fonts before.

Copy link
Member

@toonn toonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually ok with merging this with the convert because fixing the code is probably a lot of work and other convert calls might be similarly unnecessary after the fix.

So let's just open an issue on that and point to all the uses of convert in scope.sh that would be redundant.

One small thing though, would adding some spaces to the strings create some margin at the left side of the previews? The characters starting at the very edge isn't nice imo.

zaeph and others added 6 commits January 19, 2019 21:16
- Make font-name bigger than the body
- Vertically center the body so that the newline at the bottom doesn’t
  stand out as much
One un-double-quoted variable substitution. Directly use the commands
escape code rather than relying on "$?", this also drops the need to
rely on `>` which is for string comparison specifically.
Since we’re now checking whether fontimage runs successfully rather
than if it throws an error, the conditions needs to be inverted.
@toonn toonn merged commit 93863d2 into ranger:master Jan 19, 2019
@toonn
Copy link
Member

toonn commented Jan 19, 2019

🎉

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

Successfully merging this pull request may close these issues.

None yet

2 participants