Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
import Config

# Configures Elixir's Logger
config :logger, level: :info
Expand Down
2 changes: 1 addition & 1 deletion lib/opentype.ex
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ defmodule OpenType do
"""
def parse_file(filename) do
f = File.open!(filename)
data = IO.binread(f, :all)
data = IO.binread(f, :eof)
new() |> parse(data)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/opentype/parser.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule OpenType.Parser do
@moduledoc false
use Bitwise, only_operators: true
import Bitwise
require Logger

# extract the TTF (or TTC) version
Expand Down
2 changes: 1 addition & 1 deletion lib/opentype/substitutions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ defmodule OpenType.Substitutions do
g = List.last(glyphs)

# backtracking is preceding glyphs
preceding = Enum.slice(glyphs, 0..-2)
preceding = Enum.slice(glyphs, 0..-2//1)
# lookahead is following glyphs (output)

# enough backtracking or lookahead to even attempt match?
Expand Down