Skip to content

Commit

Permalink
Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Feb 20, 2022
1 parent f89cc5e commit 396e9fc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [0.15.0] - 2022-02-20
### Added
- `apple-layout` build feature.
- `ankr`, `feat`, `kerx`, `morx` and `trak` tables.
Expand Down Expand Up @@ -311,7 +313,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed
- `GDEF` table parsing.
[Unreleased]: https://github.com/RazrFalcon/ttf-parser/compare/v0.14.0...HEAD
[Unreleased]: https://github.com/RazrFalcon/ttf-parser/compare/v0.15.0...HEAD
[0.15.0]: https://github.com/RazrFalcon/ttf-parser/compare/v0.14.0...v0.15.0
[0.14.0]: https://github.com/RazrFalcon/ttf-parser/compare/v0.13.4...v0.14.0
[0.13.4]: https://github.com/RazrFalcon/ttf-parser/compare/v0.13.3...v0.13.4
[0.13.3]: https://github.com/RazrFalcon/ttf-parser/compare/v0.13.2...v0.13.3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ttf-parser"
version = "0.14.0"
version = "0.15.0"
authors = ["Yevhenii Reizner <razrfalcon@gmail.com>"]
keywords = ["ttf", "truetype", "opentype"]
categories = ["parser-implementations"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -97,7 +97,7 @@ There are roughly three types of TrueType tables:
| `VORG` table ||| |
| `VVAR` table ||| |
| Language | Rust + C API | C | C |
| Tested version | 0.14.0 | 2.10.4 | 1.24 |
| Tested version | 0.15.0 | 2.10.4 | 1.24 |
| License | MIT / Apache-2.0 | FTL / GPLv2 | public domain |

Legend:
Expand Down
3 changes: 2 additions & 1 deletion c-api/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ttf-parser-capi"
version = "0.14.0"
version = "0.15.0"
authors = ["Yevhenii Reizner <razrfalcon@gmail.com>"]
license = "MIT"
edition = "2018"
Expand All @@ -25,6 +25,7 @@ variable-fonts = ["ttf-parser/variable-fonts"]
# enable this feature.
gvar-alloc = ["ttf-parser/gvar-alloc"]
# opentype-layout is not supported.
# apple-layout is not supported.

[profile.release]
lto = true
4 changes: 2 additions & 2 deletions c-api/ttfparser.h
Expand Up @@ -11,9 +11,9 @@
#include <stdint.h>

#define TTFP_MAJOR_VERSION 0
#define TTFP_MINOR_VERSION 14
#define TTFP_MINOR_VERSION 15
#define TTFP_PATCH_VERSION 0
#define TTFP_VERSION "0.14.0"
#define TTFP_VERSION "0.15.0"

/**
* @brief A glyph image format.
Expand Down
3 changes: 3 additions & 0 deletions src/parser.rs
Expand Up @@ -554,11 +554,13 @@ pub struct LazyOffsetArray16<'a, T: FromSlice<'a>> {

impl<'a, T: FromSlice<'a>> LazyOffsetArray16<'a, T> {
/// Creates a new `LazyOffsetArray16`.
#[allow(dead_code)]
pub fn new(data: &'a [u8], offsets: LazyArray16<'a, Option<Offset16>>) -> Self {
Self { data, offsets, data_type: core::marker::PhantomData }
}

/// Parses `LazyOffsetArray16` from raw data.
#[allow(dead_code)]
pub fn parse(data: &'a [u8]) -> Option<Self> {
let mut s = Stream::new(data);
let count = s.read::<u16>()?;
Expand All @@ -581,6 +583,7 @@ impl<'a, T: FromSlice<'a>> LazyOffsetArray16<'a, T> {

/// Checks if array is empty.
#[inline]
#[allow(dead_code)]
pub fn is_empty(&self) -> bool {
self.len() == 0
}
Expand Down

0 comments on commit 396e9fc

Please sign in to comment.